aboutsummaryrefslogtreecommitdiff
path: root/package/libgcrypt/libgcrypt.mk
diff options
context:
space:
mode:
authorGravatar Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-09-19 12:20:52 +0000
committerGravatar Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-09-19 12:20:52 +0000
commitf1bcdf518fa7868b7819b0248f4b8da02a954dde (patch)
tree9717e9ec3bc9e7ebb8d930fd04808b98fe41b069 /package/libgcrypt/libgcrypt.mk
parent721599538656b49ccd037cdc345bba710c4cdbc7 (diff)
downloadbuildroot-f1bcdf518fa7868b7819b0248f4b8da02a954dde.tar.gz
buildroot-f1bcdf518fa7868b7819b0248f4b8da02a954dde.tar.bz2
- fix incorrect setting of $ac_cv_sys_symbol_underscore.
There is no reason not to AC_COMPILE and use the set cross-nm to look for the symbol mangling scheme. Thus it is incorrect to check for cross compilation in the GNUPG_SYS_SYMBOL_UNDERSCORE check. - fix bug when configuring (has to wipe config.cache !)
Diffstat (limited to 'package/libgcrypt/libgcrypt.mk')
-rw-r--r--package/libgcrypt/libgcrypt.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/package/libgcrypt/libgcrypt.mk b/package/libgcrypt/libgcrypt.mk
index 8436222af3..8f145bad5f 100644
--- a/package/libgcrypt/libgcrypt.mk
+++ b/package/libgcrypt/libgcrypt.mk
@@ -18,12 +18,16 @@ $(LIBGCRYPT_DIR)/.source: $(DL_DIR)/$(LIBGCRYPT_SOURCE)
$(BZCAT) $(DL_DIR)/$(LIBGCRYPT_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
toolchain/patch-kernel.sh $(LIBGCRYPT_DIR) package/libgcrypt/ libgcrypt\*.patch
$(CONFIG_UPDATE) $(LIBGCRYPT_DIR)
+ # This is incorrectly hardwired to yes for cross-compiles with no
+ # sane way to pass pre-existing knowledge so fix it with the chainsaw..
+ $(SED) '/GNUPG_SYS_SYMBOL_UNDERSCORE/d' $(LIBGCRYPT_DIR)/configure
touch $@
$(LIBGCRYPT_DIR)/.configured: $(LIBGCRYPT_DIR)/.source
- (cd $(LIBGCRYPT_DIR); \
+ (cd $(LIBGCRYPT_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
$(TARGET_CONFIGURE_ARGS) \
+ ac_cv_sys_symbol_underscore=no \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
@@ -41,7 +45,6 @@ $(LIBGCRYPT_DIR)/.configured: $(LIBGCRYPT_DIR)/.source
--mandir=/usr/man \
--infodir=/usr/info \
--disable-optimization \
- --with-capabilities \
)
touch $@