package/nbd: add option for the trdump utility
[buildroot-gz.git] / package / fetchmail / 0001-fix-openssl-static-link.patch
blob1a5f4d6f71f53e91eecfb29ba6268f4332224e2d
1 Fix checking for statically build OpenSSL with libz dependency
3 Fixes
4 http://autobuild.buildroot.net/results/48a/48ad6d3659cf1f04581b7e3d115bebf454ff17fd/
6 configure: Enabling OpenSSL support in /home/br/br/output/host/usr/i486-buildroot-linux-uclibc/sysroot/usr.
7 checking for additional library dependencies of SSL... error
8 configure: error: cannot link with SSL - check config.log
10 In config.log multiple linking errors to libz can be found:
12 configure:10099: /home/br/br/output/host/usr/bin/i486-ctng-linux-uclibc-gcc -o
13 conftest -D_LARGEFILE_SOURCE -D_LARGEFILE64
14 /home/br/br/output/host/usr/i486-buildroot-linux-uclibc/sysroot/usr/lib/libcrypto.a(c_zlib.o):
15 In function `zlib_stateful_c_zlib.c:(.text+0x56): undefined reference to `inflate'
17 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
19 diff -uNr fetchmail-6.3.26.org/configure.ac fetchmail-6.3.26/configure.ac
20 --- fetchmail-6.3.26.org/configure.ac 2013-04-23 22:51:10.000000000 +0200
21 +++ fetchmail-6.3.26/configure.ac 2014-07-27 09:20:25.000000000 +0200
22 @@ -778,7 +778,7 @@
23 AC_MSG_ERROR([SSL support enabled, but OpenSSL not found])
25 LDFLAGS="$LDFLAGS -L$with_ssl/lib"
26 - LIBS="$LIBS -lssl -lcrypto"
27 + LIBS="-lssl -lcrypto $LIBS"
28 dnl check if -ldl is needed
29 AC_MSG_CHECKING([for additional library dependencies of SSL])
30 found=0