0001-fix-openssl-static-link.patch 1.3 KB

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