Subject: pkg/30637: sunpro rpath flag breaks apache/
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 06/30/2005 00:05:00
>Number:         30637
>Category:       pkg
>Synopsis:       sunpro rpath flag breaks apache/
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 30 00:05:00 +0000 2005
>Originator:     grant beattie
>Release:        SunOS 5.9

System: SunOS u10 5.9 Generic_118558-03 sun4u sparc SUNW,Ultra-5_10
Architecture: sparc
Machine: sun4u
apache/ uses apxs to build apache modules. apxs does not
understand the compiler/linker argument -R, and expects all linker
arguments to be prefixed with -Wl,

LDFLAGS in www/ap-gzip is:

 -L/usr/pkg/lib -R/usr/pkg/lib -L/usr/lib -R/usr/lib

(XXX why is /usr/lib here? it shouldn't be..)

changing _COMPILER_RPATH_FLAG in to -Wl,-R makes apxs work
as expected.
attempt to build an apache module w/ sunpro.
the reason doesn't use -Wl,-R is because the C++ compiler
only understands the rpath argument -R.

I'm not sure what the correct fix is, but one possibility is setting
_COMPILER_RPATH_FLAG=-Wl,-R and stripping the -Wl, bit in the C++