summaryrefslogtreecommitdiff
path: root/apr-config.in
diff options
context:
space:
mode:
authorGreg Stein <gstein@apache.org>2002-08-29 17:56:52 +0000
committerGreg Stein <gstein@apache.org>2002-08-29 17:56:52 +0000
commit45a7e22e95a012114b69eded40e93d32dad680f5 (patch)
tree03cbaa9aca6427742efbf07791370cbcda20f9a0 /apr-config.in
parent17ccba9e78e435c78342ba171024e28ffe1d025e (diff)
downloadapr-45a7e22e95a012114b69eded40e93d32dad680f5.tar.gz
Fix the result of "apr-config --link-ld --libs". It did not include
the "-0" suffix on the lib name. - Remove "lib" prefix from APR_LIBNAME definition. - Determine ld-style library name from APR_LIBNAME for correct suffix. Submitted by: Scott Lamb <slamb@slamb.org> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63841 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'apr-config.in')
-rw-r--r--apr-config.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/apr-config.in b/apr-config.in
index fd916f43e..62992e961 100644
--- a/apr-config.in
+++ b/apr-config.in
@@ -134,9 +134,9 @@ else
fi
if test "$location" = "installed"; then
- LA_FILE="$libdir/${APR_LIBNAME}.la"
+ LA_FILE="$libdir/lib${APR_LIBNAME}.la"
else
- LA_FILE="$thisdir/${APR_LIBNAME}.la"
+ LA_FILE="$thisdir/lib${APR_LIBNAME}.la"
fi
flags=""
@@ -189,9 +189,9 @@ while test $# -gt 0; do
--link-ld)
if test "$location" = "installed"; then
### avoid using -L if libdir is a "standard" location like /usr/lib
- flags="$flags -L$libdir -lapr"
+ flags="$flags -L$libdir -l${APR_LIBNAME}"
else
- flags="$flags -L$thisdir -lapr"
+ flags="$flags -L$thisdir -l${APR_LIBNAME}"
fi
;;
--link-libtool)
@@ -203,7 +203,7 @@ 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 -lapr"
+ flags="$flags -L$libdir -l${APR_LIBNAME}"
else
flags="$flags $LA_FILE"
fi