From cf99bda83149c2a14485a02e27e809c9621ffd89 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Mon, 25 Apr 2011 20:24:59 +0000 Subject: Reorder CFLAGS and LDFLAGS to avoid search path problems svn path=/configure; revision=3791 --- configure.ac | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 30835d67..fa0f76f3 100644 --- a/configure.ac +++ b/configure.ac @@ -324,8 +324,11 @@ then AC_SUBST(OPENSSL_SO_GLOB) AC_MSG_RESULT([$OPENSSL_SO_GLOB]) - CFLAGS="$CFLAGS -I\${abs_top_srcdir}/openssl/openssl/include" - LIBS="$LIBS \${abs_top_builddir}/openssl/openssl/libssl.a \${abs_top_builddir}/openssl/openssl/libcrypto.a" + # NB: We put our OpenSSL directory at the *front* of the + # search list to preempt conflicts with system copies. + + CFLAGS="-I\${abs_top_srcdir}/openssl/openssl/include $CFLAGS" + LIBS="\${abs_top_builddir}/openssl/openssl/libssl.a \${abs_top_builddir}/openssl/openssl/libcrypto.a $LIBS" else LIBS="$LIBS -lssl -lcrypto" fi -- cgit v1.2.3