httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alderfer, Tim" <>
Subject RE: Apache2 and HPUX...apr libs....Solution
Date Tue, 29 Jul 2003 20:56:02 GMT
The solution is the following.

1) Run configure with these options

CFLAGS="+O3 -mt";export CFLAGS

CCOPTS="+O3 -mt";export CCOPTS

LDFLAGS="-Wl,+b.:../lib:/usr/lib:/lib ";export LDFLAGS

The most important is the LDFLAGS variable. 

2) After the configure you need to edit a couple of files

You need to make 3 changes to 2 files.

vi <PREFIX>/srclib/apr/libtool and

Do a search for "hardcode_direct=yes" and change to hardcode_direct=no, this
is in the file twice. Also, do a search for "absdir=`cd "$dir" && pwd`" and
comment out that line plus the next 5, a total of six lines.

3) make

4) make install



-----Original Message-----
From: Alderfer, Tim []
Sent: Tuesday, July 29, 2003 12:27 PM
To: ''
Subject: Apache2 and HPUX...apr libs

How do I get Apache compiled so that httpd will dynamically look at relative
paths for the apr libraries?,,  This was not an issue prior to Apache2 because all of
the libs were compiled in the executable.  This is not the case with
Apache2.  I would like to avoid having to copy these libs into /usr/lib.
Is there a way to compile Apache to use all relative paths to the libs?
Here's the output from chatr.  Please help!
             dynamic   /usr/lib/libpthread.1
             dynamic   /app/install/apache/binaries/apache/lib/
             dynamic   /app/install/apache/binaries/apache/lib/
             dynamic   /usr/lib/libm.2
             dynamic   /usr/lib/libnsl.1
             dynamic   /usr/lib/libdld.2
             dynamic   /usr/lib/libc.2
Tim Alderfer

View raw message