]> git.pld-linux.org Git - packages/erlang.git/blob - erlang-as_needed.patch
- Patch for correct openssl-devel detection with --as-needed
[packages/erlang.git] / erlang-as_needed.patch
1 --- erts/configure.in.orig      2008-04-24 23:16:09.000000000 +0400
2 +++ erts/configure.in   2008-04-24 23:17:05.000000000 +0400
3 @@ -2874,8 +2874,10 @@
4                                 else
5                                         saveCFLAGS="$CFLAGS"
6                                         saveLDFLAGS="$LDFLAGS"
7 +                                       saveLIBS="$LIBS"
8                                         CFLAGS="$CFLAGS $SSL_INCLUDE"
9 -                                       LDFLAGS="$LDFLAGS -L$SSL_LIBDIR -lcrypto"
10 +                                       LDFLAGS="$LDFLAGS -L$SSL_LIBDIR"
11 +                                       LIBS="-lcrypto"
12                                         AC_TRY_LINK([
13                                         #include <stdio.h>
14                                         #include <openssl/hmac.h>],
15 @@ -2887,6 +2889,7 @@
16                                         [ssl_linkable=no])
17                                         CFLAGS="$saveCFLAGS"
18                                         LDFLAGS="$saveLDFLAGS"
19 +                                       LIBS="$saveLIBS"
20                                 fi
21                         fi
22                         if test "x$ssl_found" = "xyes" -a "x$ssl_linkable" = "xyes"  ; then
This page took 0.052773 seconds and 3 git commands to generate.