Subject: pkg/15652: gettext-lib/ blindly uses -R flag for INTLIBS
To: None <>
From: None <>
List: netbsd-bugs
Date: 02/18/2002 00:51:52
>Number:         15652
>Category:       pkg
>Synopsis:       gettext-lib/ blindly uses -R flag for INTLIBS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 18 00:52:00 PST 2002
>Originator:     Rob Latham
>Release:        pkgsrc on darwin (os x)
Darwin localhost 5.2 Darwin Kernel Version 5.2: Fri Dec  7 21:39:35 PST 2001; root:xnu/xnu-201.14.obj~1/RELEASE_PPC  Power Macintosh powerpc

not every pkgsrc platform needs or even understands the -R linker flag. The _USE_RPATH macro can be checked if -R is needed
build any package that uses gettext/ on an operating system that doesn't understand the -R flag to the linker ( Mac OS X for one )
RCS file: /cvsroot/pkgsrc/devel/gettext-lib/,v
retrieving revision 1.12
diff -u -w -u -r1.12
---        2001/10/26 19:18:36     1.12
+++        2002/02/18 08:49:48
@@ -53,7 +53,9 @@
 INTLLIBS=                      -L${BUILDLINK_DIR}/lib
 .if ${_NEED_GNU_GETTEXT} == "YES"
+.if ${_USE_RPATH} == "yes"
 INTLLIBS+=                     -Wl,-R${BUILDLINK_PREFIX.gettext}/lib
 INTLLIBS+=                     -lintl
 LIBS+=                         ${INTLLIBS}