diff options
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | configure.ac | 9 |
2 files changed, 7 insertions, 3 deletions
@@ -67,6 +67,7 @@ removed from a 6.5.0 or newer release.) # BUG FIXES * Fix a typo in the manual page reported by David McKelvie. +* Fix cross-compilation with openssl, by Fabrice Fontaine. -------------------------------------------------------------------------------- fetchmail-6.4.14 (released 2020-11-26, 27608 LoC): diff --git a/configure.ac b/configure.ac index 554d152c..203469b1 100644 --- a/configure.ac +++ b/configure.ac @@ -801,10 +801,13 @@ else AC_MSG_WARN(Consider re-running configure --with-ssl.) fi -AC_LIB_LINKFLAGS([crypto]) -AC_LIB_LINKFLAGS([ssl], [crypto]) +if test "$cross_compiling" != yes +then + AC_LIB_LINKFLAGS([crypto]) + AC_LIB_LINKFLAGS([ssl], [crypto]) -LIBS="$LIBS $LIBSSL $LIBCRYPTO" + LIBS="$LIBS $LIBSSL $LIBCRYPTO" +fi AC_MSG_NOTICE([LIBS:] "$LIBS") case "$LIBS" in *-lssl*|*libssl*) |