summaryrefslogtreecommitdiffstats
path: root/package/lsof/lsof.mk
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-12-13 23:08:48 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-12-13 23:08:48 +0000
commit819ef8072b194fabbca9260268b299747b7b4fb1 (patch)
treedd1d007f00ca2c2b099ef9758bed519bedc36afb /package/lsof/lsof.mk
parentb3d0f31bdce9d43201be68461296d547be16c139 (diff)
downloadbuildroot-novena-819ef8072b194fabbca9260268b299747b7b4fb1.tar.gz
buildroot-novena-819ef8072b194fabbca9260268b299747b7b4fb1.zip
- Convince lsof to honor uClibc's notion of wchar and locale support.
Diffstat (limited to 'package/lsof/lsof.mk')
-rw-r--r--package/lsof/lsof.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/lsof/lsof.mk b/package/lsof/lsof.mk
index dc9902f82..8849c6c98 100644
--- a/package/lsof/lsof.mk
+++ b/package/lsof/lsof.mk
@@ -36,6 +36,13 @@ $(LSOF_DIR)/.configured: $(LSOF_DIR)/.unpacked
touch $(LSOF_DIR)/.configured
$(LSOF_DIR)/lsof_4.77_src/$(LSOF_BINARY): $(LSOF_DIR)/.configured
+ifeq ($(UCLIBC_HAS_WCHAR),)
+ $(SED) 's,^#define[ ]*HASWIDECHAR.*,#undef HASWIDECHAR,' $(LSOF_DIR)/lsof_4.77_src/machine.h
+ $(SED) 's,^#define[ ]*WIDECHARINCL.*,,' $(LSOF_DIR)/lsof_4.77_src/machine.h
+endif
+ifeq ($(UCLIBC_HAS_LOCALE),)
+ $(SED) 's,^#define[ ]*HASSETLOCALE.*,#undef HASSETLOCALE,' $(LSOF_DIR)/lsof_4.77_src/machine.h
+endif
$(MAKE) $(TARGET_CONFIGURE_OPTS) DEBUG="$(TARGET_CFLAGS) $(BR2_LSOF_CFLAGS)" -C $(LSOF_DIR)/lsof_4.77_src
$(TARGET_DIR)/$(LSOF_TARGET_BINARY): $(LSOF_DIR)/lsof_4.77_src/$(LSOF_BINARY)