summaryrefslogtreecommitdiff
path: root/www/galeon
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2002-09-04 14:47:32 +0000
committeragc <agc@pkgsrc.org>2002-09-04 14:47:32 +0000
commitcb0e38446b26c5bb3ee8b10360669165287c6faa (patch)
treec5f617edba6ae81af7be6e5d984ab9fdbe5a97f4 /www/galeon
parente3796adbcd56281dbb92ae41375bc079d3fd02f2 (diff)
downloadpkgsrc-cb0e38446b26c5bb3ee8b10360669165287c6faa.tar.gz
Apply patches from Lubomir Sedlacik <salo@Xtrmntr.org> in PR 18115 to
generalise the linker flags used to export symbols by setting them on a per-OS basis. > many packages force -Wl,-export-dynamic which is not portable outside GNU ld > and cause problems e.g. on Solaris. some of these packages use if > conditionals either only for NetBSD or except SunOS, but the state is not > coherent and it may complicate later when support for new OS is added to > pkgsrc (e.g. ongoing work on HP-UX support). > > jlam proposed the following framework in discussion on tech-pkg: > > http://mail-index.netbsd.org/tech-pkg/2002/06/21/0009.html > > now, ${EXPORT_SYMBOLS_LDFLAGS} is used instead of directly defining > -Wl,-export-dynamic which is set in appropriate defs.*.mk to reasonable > values. packages should be converted to this framework by: > > 1) replacing LDFLAGS+= -Wl,-export-dynamic and LIBS+= -export-dynamic with: > > LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS} > > 2) for use in patchfiles, add this variable to MAKE_ENV if needed: > > MAKE_ENV+= EXPORT_SYMBOLS_LDFLAGS=${EXPORT_SYMBOLS_LDFLAGS} > > 3) replace occurances of -Wl,-export-dynamic and -export-dynamic in patch > files with: > > $(EXPORT_SYMBOLS_LDFLAGS)
Diffstat (limited to 'www/galeon')
-rw-r--r--www/galeon/Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/www/galeon/Makefile b/www/galeon/Makefile
index 6db161f3f56..66947af7f9f 100644
--- a/www/galeon/Makefile
+++ b/www/galeon/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.34 2002/08/29 20:00:20 drochner Exp $
+# $NetBSD: Makefile,v 1.35 2002/09/04 14:47:41 agc Exp $
DISTNAME= galeon-1.2.5
CATEGORIES= www
@@ -38,11 +38,9 @@ CONFIGURE_ARGS+= --with-mozilla-snapshot=trunk
MOZ_LIBDIR= ${PREFIX}/lib/mozilla
LDFLAGS+= -Wl,-R${MOZ_LIBDIR}
-.if(${OBJECT_FMT} == ELF)
-LDFLAGS+= -export-dynamic
-.else
-LIBS+= -lstdc++
-.endif
+
+# Ensure we export symbols in the linked shared object.
+LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS}
pre-install:
${X11PREFIX}/bin/gconftool --shutdown