void-packages/srcpkgs/pam_ssh/patches/fix-cross-compile-openssl-feature-checks.patch
2016-08-02 13:57:34 +02:00

39 lines
1.7 KiB
Diff

The configure script contains checks that cannot run when cross-compiling. This
patch disables them
diff -Naur configure.orig configure
--- configure.orig 2016-08-01 15:39:25.194784834 +0200
+++ configure 2016-08-01 15:40:38.914790397 +0200
@@ -11621,10 +11621,6 @@
# Basic test to check for compatible version and correct linking
# *does not* test for RSA - that comes later.
if test "$cross_compiling" = yes; then :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "cannot run test program while cross compiling
-See \`config.log' for more details" "$LINENO" 5; }
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -11710,10 +11706,6 @@
LIBS="$saved_LIBS -lRSAglue -lrsaref"
fi
if test "$cross_compiling" = yes; then :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "cannot run test program while cross compiling
-See \`config.log' for more details" "$LINENO" 5; }
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -11789,10 +11781,6 @@
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5
$as_echo_n "checking whether OpenSSL's headers match the library... " >&6; }
if test "$cross_compiling" = yes; then :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "cannot run test program while cross compiling
-See \`config.log' for more details" "$LINENO" 5; }
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */