Here's something that took me a few hours to get dialed in. This is all set for linking DBD::Oracle and DBD::Sybase
to their respective 64-bit client libraries without hassle. I'm assuming the HP ANSI C compiler is installed. I never
even tried with gcc due to some custom extensions that require the HP compiler.
CC=/opt/ansic/bin/cc \
CXX=/opt/aCC/bin/aCC \
CFLAGS="+DD64 +Z -I/opt/perl-5.8/local/include" \
CXXFLAGS=$CFLAGS \
LDFLAGS="-L/opt/perl-5.8/local/lib -L/usr/lib/hpux64" \
PATH=/opt/ansic/bin:/usr/ccs/bin:/opt/perl-5.8/local/bin:/opt/perl-5.8/bin:/usr/bin:/usr/local/bin:/bin:/sbin \
PERL=/opt/perl-5.8/bin/perl \
MAKE=/usr/local/bin/gmake \
./Configure -der \
-A prepend:libswanted='cl pthread ' \
-Dprefix=/opt/perl-5.8 \
-Dinstallprefix=/opt/perl-5.8 \
-Duselargefiles \
-Dusethreads \
-Duse64bitall \
-Dyacc='/usr/local/bin/bison -y' \
-Uusemallocwrap \
-Dcf_by="Al Tobey" \
-Dperladmin='tobert@gmail.com' \
-Dcf_email='tobert@gmail.com'
make
make test
make install
(cd /usr/include; /opt/perl-5.8/bin/h2ph -r -l .)