Skip to content

Commit d23abfd

Browse files
author
Michael Dickey
committed
Fix library order for gcc used in Ubuntu 12.04
1 parent 45bf448 commit d23abfd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

build/pion-config.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ if test "x_$openssl_location" != "x_no"; then
167167
AC_CHECK_HEADERS([openssl/ssl.h],,AC_MSG_ERROR([Unable to find the OpenSSL headers]))
168168
# Check for OpenSSL library
169169
LIBS_SAVED="$LIBS"
170-
LIBS="$LIBS_SAVED -lssl -lcrypto"
170+
LIBS="-lssl -lcrypto $LIBS_SAVED"
171171
AC_MSG_CHECKING(linking with openssl)
172172
AC_TRY_LINK([#include <openssl/ssl.h>],[ SSL_library_init(); return(0); ],
173173
[ AC_MSG_RESULT(ok) ],

build/pion-setup.inc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ case "$build_os" in
8585
*)
8686
# Other (Linux): GCC compiler
8787
CPPFLAGS="$CPPFLAGS -pthread -D_REENTRANT"
88-
LDFLAGS="$LDFLAGS -pthread -lrt -ldl -Wl,-E"
88+
LDFLAGS="$LDFLAGS -pthread -Wl,-E"
89+
LIBS="-lrt -ldl"
8990
PION_OPT_FLAGS="-O2 -ggdb -Wall -Wno-strict-aliasing -DNDEBUG"
9091
PION_DEBUG_FLAGS="-O0 -ggdb -Wall -Wno-strict-aliasing -fkeep-inline-functions"
9192
;;

0 commit comments

Comments
 (0)