summaryrefslogtreecommitdiff
path: root/apr-config.in
diff options
context:
space:
mode:
authorJustin Erenkrantz <jerenkrantz@apache.org>2004-12-09 04:22:47 +0000
committerJustin Erenkrantz <jerenkrantz@apache.org>2004-12-09 04:22:47 +0000
commitcd5b29a48205c2933df5d3f328096bc784eda66c (patch)
treef84c05c23a1342db2cc42fde27a27f59d328ac5b /apr-config.in
parent60e6b71cf81f1e58d52fe53af31e98dadce73042 (diff)
downloadapr-cd5b29a48205c2933df5d3f328096bc784eda66c.tar.gz
Emit the run-time link path option in apr-config after installation if the user
is linking with libtool. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@111346 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'apr-config.in')
-rw-r--r--apr-config.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/apr-config.in b/apr-config.in
index 870cf888a..d2bca990c 100644
--- a/apr-config.in
+++ b/apr-config.in
@@ -196,7 +196,9 @@ while test $# -gt 0; do
flags="$flags $LA_FILE"
elif test "$location" = "installed"; then
### avoid using -L if libdir is a "standard" location like /usr/lib
- flags="$flags -L$libdir -l${APR_LIBNAME}"
+ # Since the user is specifying they are linking with libtool, we
+ # *know* that -R will be recognized by libtool.
+ flags="$flags -L$libdir -R$libdir -l${APR_LIBNAME}"
else
flags="$flags $LA_FILE"
fi