libgcrypt: enable asm support, fix crosscompiling with enabled asm support

Signed-off-by: Stephan Raue <stephan@openelec.tv>
(cherry picked from commit 3cda541a8aee5664bf9fe1247e8014b70ade4a32)
This commit is contained in:
Stephan Raue 2016-11-15 23:49:07 +00:00 committed by MilhouseVH
parent f99192fff6
commit 7dc9988eea
2 changed files with 31 additions and 1 deletions

View File

@ -31,7 +31,10 @@ PKG_LONGDESC="Libgcrypt is a general purpose cryptographic library based on the
PKG_IS_ADDON="no"
PKG_AUTORECONF="yes"
PKG_CONFIGURE_OPTS_TARGET="--disable-asm --with-gnu-ld --with-libgpg-error-prefix=$SYSROOT_PREFIX/usr"
PKG_CONFIGURE_OPTS_TARGET="ac_cv_sys_symbol_underscore=no \
--enable-asm \
--with-gnu-ld \
--with-libgpg-error-prefix=$SYSROOT_PREFIX/usr"
post_makeinstall_target() {
sed -e "s:\(['= ]\)\"/usr:\\1\"$SYSROOT_PREFIX/usr:g" -i src/$PKG_NAME-config

View File

@ -0,0 +1,27 @@
diff --git a/acinclude.m4 b/acinclude.m4
index a7bc0fa..1a5bffc 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -76,13 +76,14 @@ case "${host}" in
i386-emx-os2 | i[3456]86-pc-os2*emx | i386-pc-msdosdjgpp)
ac_cv_sys_symbol_underscore=yes
;;
- *)
- if test "$cross_compiling" = yes; then
- if test "x$ac_cv_sys_symbol_underscore" = x ; then
- ac_cv_sys_symbol_underscore=yes
- fi
- else
- tmp_do_check="yes"
+ *) if test -z "$ac_cv_sys_symbol_underscore"; then
+ if test "$cross_compiling" = yes; then
+ if test "x$ac_cv_sys_symbol_underscore" = x ; then
+ ac_cv_sys_symbol_underscore=yes
+ fi
+ else
+ tmp_do_check="yes"
+ fi
fi
;;
esac