pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/30637: sunpro rpath flag breaks apache/module.mk
>Number: 30637
>Category: pkg
>Synopsis: sunpro rpath flag breaks apache/module.mk
>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
>Organization:
>Environment:
System: SunOS u10 5.9 Generic_118558-03 sun4u sparc SUNW,Ultra-5_10
Architecture: sparc
Machine: sun4u
>Description:
apache/module.mk 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 sunpro.mk to -Wl,-R makes apxs work
as expected.
>How-To-Repeat:
attempt to build an apache module w/ sunpro.
>Fix:
the reason sunpro.mk 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++
wrapper.
Home |
Main Index |
Thread Index |
Old Index