mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 21:26:36 +00:00
- 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 !)
This commit is contained in:
parent
7215995386
commit
f1bcdf518f
@ -0,0 +1,24 @@
|
|||||||
|
diff -u libgcrypt-1.2.4.oorig/acinclude.m4 libgcrypt-1.2.4/acinclude.m4
|
||||||
|
--- libgcrypt-1.2.4.oorig/acinclude.m4 2005-07-29 15:45:48.000000000 +0200
|
||||||
|
+++ libgcrypt-1.2.4/acinclude.m4 2007-09-19 13:33:19.000000000 +0200
|
||||||
|
@@ -99,12 +99,14 @@
|
||||||
|
i386-emx-os2 | i[3456]86-pc-os2*emx | i386-pc-msdosdjgpp)
|
||||||
|
ac_cv_sys_symbol_underscore=yes
|
||||||
|
;;
|
||||||
|
- *)
|
||||||
|
- if test "$cross_compiling" = yes; then
|
||||||
|
- ac_cv_sys_symbol_underscore=yes
|
||||||
|
- else
|
||||||
|
- tmp_do_check="yes"
|
||||||
|
- fi
|
||||||
|
+ *) if test -z "$ac_cv_sys_symbol_underscore"; then
|
||||||
|
+ if test "$cross_compiling" = yes &&
|
||||||
|
+ then
|
||||||
|
+ ac_cv_sys_symbol_underscore=yes
|
||||||
|
+ else
|
||||||
|
+ tmp_do_check="yes"
|
||||||
|
+ fi
|
||||||
|
+ fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
if test "$tmp_do_check" = "yes"; then
|
17
package/libgcrypt/libgcrypt-01-reconfigure.patch
Normal file
17
package/libgcrypt/libgcrypt-01-reconfigure.patch
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
--- libgcrypt-1.2.4.oorig/configure 2007-09-19 13:40:48.000000000 +0200
|
||||||
|
+++ libgcrypt-1.2.4/configure 2007-09-19 13:41:44.000000000 +0200
|
||||||
|
@@ -27370,12 +27370,13 @@
|
||||||
|
i386-emx-os2 | i345686-pc-os2*emx | i386-pc-msdosdjgpp)
|
||||||
|
ac_cv_sys_symbol_underscore=yes
|
||||||
|
;;
|
||||||
|
- *)
|
||||||
|
+ *)if test -z "$ac_cv_sys_symbol_underscore";then
|
||||||
|
if test "$cross_compiling" = yes; then
|
||||||
|
ac_cv_sys_symbol_underscore=yes
|
||||||
|
else
|
||||||
|
tmp_do_check="yes"
|
||||||
|
fi
|
||||||
|
+ fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
if test "$tmp_do_check" = "yes"; then
|
@ -18,12 +18,16 @@ $(LIBGCRYPT_DIR)/.source: $(DL_DIR)/$(LIBGCRYPT_SOURCE)
|
|||||||
$(BZCAT) $(DL_DIR)/$(LIBGCRYPT_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
$(BZCAT) $(DL_DIR)/$(LIBGCRYPT_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
||||||
toolchain/patch-kernel.sh $(LIBGCRYPT_DIR) package/libgcrypt/ libgcrypt\*.patch
|
toolchain/patch-kernel.sh $(LIBGCRYPT_DIR) package/libgcrypt/ libgcrypt\*.patch
|
||||||
$(CONFIG_UPDATE) $(LIBGCRYPT_DIR)
|
$(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 $@
|
touch $@
|
||||||
|
|
||||||
$(LIBGCRYPT_DIR)/.configured: $(LIBGCRYPT_DIR)/.source
|
$(LIBGCRYPT_DIR)/.configured: $(LIBGCRYPT_DIR)/.source
|
||||||
(cd $(LIBGCRYPT_DIR); \
|
(cd $(LIBGCRYPT_DIR); rm -f config.cache; \
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
$(TARGET_CONFIGURE_OPTS) \
|
||||||
$(TARGET_CONFIGURE_ARGS) \
|
$(TARGET_CONFIGURE_ARGS) \
|
||||||
|
ac_cv_sys_symbol_underscore=no \
|
||||||
./configure \
|
./configure \
|
||||||
--target=$(GNU_TARGET_NAME) \
|
--target=$(GNU_TARGET_NAME) \
|
||||||
--host=$(GNU_TARGET_NAME) \
|
--host=$(GNU_TARGET_NAME) \
|
||||||
@ -41,7 +45,6 @@ $(LIBGCRYPT_DIR)/.configured: $(LIBGCRYPT_DIR)/.source
|
|||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--infodir=/usr/info \
|
--infodir=/usr/info \
|
||||||
--disable-optimization \
|
--disable-optimization \
|
||||||
--with-capabilities \
|
|
||||||
)
|
)
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user