Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Setting rpath to reference value used when --with-openssl is specifie…

…d, This closes #75
  • Loading branch information...
commit 42772cfa4d9cc811dd53a11663a2286a22e4df8f 1 parent 88fc99a
@bgaff bgaff authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 build/ax_check_openssl.m4
View
8 build/ax_check_openssl.m4
@@ -37,6 +37,7 @@
AU_ALIAS([CHECK_SSL], [AX_CHECK_OPENSSL])
AC_DEFUN([AX_CHECK_OPENSSL], [
found=false
+ overriden_with_ssl=false
AC_ARG_WITH([openssl],
[AS_HELP_STRING([--with-openssl=DIR],
[root of the OpenSSL directory])],
@@ -46,6 +47,7 @@ AC_DEFUN([AX_CHECK_OPENSSL], [
AC_MSG_ERROR([Invalid --with-openssl value])
;;
*) ssldirs="$withval"
+ overriden_with_ssl=true
;;
esac
], [
@@ -80,8 +82,14 @@ AC_DEFUN([AX_CHECK_OPENSSL], [
OPENSSL_INCLUDES="-I$ssldir/include"
if test -d "$ssldir/lib64"; then
OPENSSL_LDFLAGS="-L$ssldir/lib64"
+ if test "$overriden_with_ssl"; then
+ TS_ADDTO(LIBTOOL_LINK_FLAGS, [-rpath ${ssldir}/lib64])
+ fi
else
OPENSSL_LDFLAGS="-L$ssldir/lib"
+ if test "$overriden_with_ssl"; then
+ TS_ADDTO(LIBTOOL_LINK_FLAGS, [-rpath ${ssldir}/lib])
+ fi
fi
OPENSSL_LIBS="-lssl -lcrypto"
found=true
Please sign in to comment.
Something went wrong with that request. Please try again.