diff options
author | gstein <gstein@13f79535-47bb-0310-9956-ffa450edef68> | 2002-08-29 17:56:52 +0000 |
---|---|---|
committer | gstein <gstein@13f79535-47bb-0310-9956-ffa450edef68> | 2002-08-29 17:56:52 +0000 |
commit | dbff1f163f68c21dff1e62ce71606ece45731c96 (patch) | |
tree | 03cbaa9aca6427742efbf07791370cbcda20f9a0 /apr-config.in | |
parent | b6d549024190397559cee6242f606c5afeb8da9e (diff) | |
download | libapr-dbff1f163f68c21dff1e62ce71606ece45731c96.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: http://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.in | 10 |
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 |