On Fri, Oct 18, 2002 at 06:58:47AM -0400, Jeff Trawick wrote:
> [EMAIL PROTECTED] writes:
> 
> > wrowe       2002/10/17 11:22:17
> > 
> >   Modified:    build    apr_hints.m4
> >   Log:
> >     When we build HP-UX applications, they must be able to follow the
> >     SHLIB_PATH path variable due to the construction and potential 
> > relocation
> >     of libapr.sl/libaprutil.sl with binary builds.
> 
> Q: Does a binbuild on HP-UX work for you without other hacks to the
> build when you move the binbuild to another machine (or rename the
> initial install tree so libs can't be found there)?

That commit also broke GCC builds on HP-UX; temporary fix below, though
if this really needs to be used by default it should be passed to GCC as
-Wl,+s as well.

Index: configure.in
===================================================================
RCS file: /home/cvspublic/apr/configure.in,v
retrieving revision 1.490
diff -u -r1.490 configure.in
--- configure.in        17 Oct 2002 17:40:24 -0000      1.490
+++ configure.in        18 Oct 2002 12:57:57 -0000
@@ -315,6 +315,7 @@
 case "$host:$CC" in
     *-hp-hpux*:cc )
        APR_ADDTO(CFLAGS,[-Ae +DAportable +Z])
+       APR_ADDTO(LDFLAGS, [+s])
        ;;
     powerpc-*-beos:mwcc* )
        APR_SETVAR(CPP,[mwcc -E])
Index: build/apr_hints.m4
===================================================================
RCS file: /home/cvspublic/apr/build/apr_hints.m4,v
retrieving revision 1.45
diff -u -r1.45 apr_hints.m4
--- build/apr_hints.m4  17 Oct 2002 18:22:16 -0000      1.45
+++ build/apr_hints.m4  18 Oct 2002 12:57:57 -0000
@@ -81,7 +81,6 @@
        ;;
     *-hp-hpux11.*)
        APR_ADDTO(CPPFLAGS, [-DHPUX11 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED])
-       APR_ADDTO(LDFLAGS, [+s])
        ;;
     *-hp-hpux10.*)
        case $host in
@@ -92,11 +91,9 @@
               ;;            
        esac
        APR_ADDTO(CPPFLAGS, [-D_REENTRANT])
-       APR_ADDTO(LDFLAGS, [+s])
        ;;
     *-hp-hpux*)
        APR_ADDTO(CPPFLAGS, [-DHPUX -D_REENTRANT])
-       APR_ADDTO(LDFLAGS, [+s])
        ;;
     *-linux-*)
         case `uname -r` in

Reply via email to