Author: joes
Date: Mon Jan 12 10:09:14 2009
New Revision: 733854
URL: http://svn.apache.org/viewvc?rev=733854&view=rev
Log:
fix linking of perl .so
modules on solaris 10
Modified:
httpd/apreq/trunk/CHANGES
httpd/apreq/trunk/apreq2-config.in
Modified: httpd/apreq/trunk/CHANGES
URL:
http://svn.apache.org/viewvc/httpd/apreq/trunk/CHANGES?rev=733854&r1=733853&r2=733854&view=diff
==============================================================================
--- httpd/apreq/trunk/CHANGES (original)
+++ httpd/apreq/trunk/CHANGES Mon Jan 12 10:09:14 2009
@@ -1,10 +1,13 @@
/** @page apreq_changes CHANGES
//! brief List of major changes.
+...@section v2_10 Changes with libapreq2-2.10 (not released)
-...@section v2_10 Changes with libapreq2-2.10 (under developement)
+- Perl Glue [joes]
+ Fix the linking of the perl modules to libapreq2 and libapr
+ on Solaris.
-- Perl Glue
+- Perl Glue [joes]
Fix install-time linking issue of the .so modules.
Previously they would remain linked against the src
library path, not the install path.
Modified: httpd/apreq/trunk/apreq2-config.in
URL:
http://svn.apache.org/viewvc/httpd/apreq/trunk/apreq2-config.in?rev=733854&r1=733853&r2=733854&view=diff
==============================================================================
--- httpd/apreq/trunk/apreq2-config.in (original)
+++ httpd/apreq/trunk/apreq2-config.in Mon Jan 12 10:09:14 2009
@@ -20,6 +20,8 @@
# APR-util script designed to allow easy command line access to APR-util
# configuration parameters.
+PATH=/bin:/usr/bin:/usr/local/bin
+
prefix="@prefix@"
exec_prefix="@exec_prefix@"
bindir="@bindir@"
@@ -29,7 +31,7 @@
LIBS="@APR_LIBS@"
LDFLAGS="@APR_LDFLAGS@"
INCLUDES="@APR_INCLUDES@"
-LDFLAGS="@APR_LDFLAGS@"
+SOLARIS=`echo @build_os@ | grep -i solaris`
APREQ_LIBNAME="@APREQ_LIBNAME@"
@@ -213,6 +215,9 @@
done
if test -n "$flags"; then
+ if [ -n $SOLARIS ]; then
+ $flags=`echo $flags | sed -e 's/-L\([^ ]*\)/-R\1 -L\1/g'`
+ fi
echo "$flags"
fi