summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--audio/arts/Makefile9
-rw-r--r--audio/kdemultimedia2/Makefile9
-rw-r--r--audio/kdemultimedia3/Makefile9
-rw-r--r--graphics/dx/Makefile4
-rw-r--r--graphics/gimp-base/Makefile6
-rw-r--r--graphics/kdegraphics2/Makefile9
-rw-r--r--graphics/kdegraphics3/Makefile9
-rw-r--r--misc/kdeutils2/Makefile11
-rw-r--r--misc/kdeutils3/Makefile13
-rw-r--r--misc/koffice/Makefile.common7
-rw-r--r--mk/defs.Darwin.mk3
-rw-r--r--mk/defs.Linux.mk3
-rw-r--r--mk/defs.NetBSD.mk7
-rw-r--r--mk/defs.SunOS.mk3
-rw-r--r--www/ap-php4/Makefile8
-rw-r--r--www/galeon/Makefile10
-rw-r--r--www/php3/Makefile.module6
-rw-r--r--www/php4/Makefile7
-rw-r--r--www/php4/Makefile.module9
-rw-r--r--www/php4/distinfo4
-rw-r--r--www/php4/patches/patch-aa4
21 files changed, 68 insertions, 82 deletions
diff --git a/audio/arts/Makefile b/audio/arts/Makefile
index 812b9042bab..fc2769d03df 100644
--- a/audio/arts/Makefile
+++ b/audio/arts/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2002/08/28 07:15:25 skrll Exp $
+# $NetBSD: Makefile,v 1.8 2002/09/04 14:47:35 agc Exp $
DISTNAME= arts-1.0.3
CATEGORIES= audio
@@ -14,11 +14,8 @@ LIBTOOL_OVERRIDE+= ${WRKSRC}/libltdl/libtool
USE_PERL5= build
-.include "../../mk/bsd.prefs.mk"
-
-.if ${OPSYS} == "NetBSD"
-LIBS+= -Wl,--export-dynamic
-.endif
+# Ensure we export symbols in the linked shared object.
+LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS}
.include "../../audio/libaudiofile/buildlink.mk"
.include "../../x11/kde3/buildlink.mk"
diff --git a/audio/kdemultimedia2/Makefile b/audio/kdemultimedia2/Makefile
index 60f5a47a9e8..d2f0d3dd682 100644
--- a/audio/kdemultimedia2/Makefile
+++ b/audio/kdemultimedia2/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2002/08/01 05:48:04 jlam Exp $
+# $NetBSD: Makefile,v 1.13 2002/09/04 14:47:35 agc Exp $
DISTNAME= kdemultimedia-2.2.2
PKGREVISION= 1
@@ -15,11 +15,8 @@ PTHREAD_OPTS+= require
CONFIGURE_ENV+= ac_cv_path_kde_artsplug_compiles="${ARTSCCONFIG}"
-.include "../../mk/bsd.prefs.mk"
-
-.if ${OPSYS} == "NetBSD"
-LIBS= -Wl,--export-dynamic
-.endif
+# Ensure we export symbols in the linked shared object.
+LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS}
.include "../../x11/kde2/buildlink.mk"
.include "../../x11/kdebase2/buildlink.mk"
diff --git a/audio/kdemultimedia3/Makefile b/audio/kdemultimedia3/Makefile
index de7b26c5c9b..e1a1b2f2cf4 100644
--- a/audio/kdemultimedia3/Makefile
+++ b/audio/kdemultimedia3/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2002/08/28 07:15:26 skrll Exp $
+# $NetBSD: Makefile,v 1.5 2002/09/04 14:47:35 agc Exp $
DISTNAME= kdemultimedia-3.0.3
CATEGORIES= audio
@@ -10,11 +10,8 @@ DEPENDS+= xanim>=2.80.0:../../graphics/xanim
USE_BUILDLINK_ONLY= YES
-.include "../../mk/bsd.prefs.mk"
-
-.if ${OPSYS} == "NetBSD"
-LIBS= -Wl,--export-dynamic
-.endif
+# Ensure we export symbols in the linked shared object.
+LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS}
PTHREAD_OPT+= require
diff --git a/graphics/dx/Makefile b/graphics/dx/Makefile
index e2af14ad519..5c9256968e6 100644
--- a/graphics/dx/Makefile
+++ b/graphics/dx/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2002/04/23 02:08:53 jlam Exp $
+# $NetBSD: Makefile,v 1.16 2002/09/04 14:47:36 agc Exp $
DISTNAME= dx-4.1.3
PKGREVISION= 1
@@ -17,7 +17,7 @@ CONFIGURE_ARGS+= --without-javadx
CONFIGURE_ENV+= LEX="flex -l"
# Ensure we export symbols in the linked shared object.
-LDFLAGS+= -Wl,--export-dynamic
+LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS}
CPPFLAGS+= -I${BUILDLINK_DIR}/include/freetype # freetype.h
diff --git a/graphics/gimp-base/Makefile b/graphics/gimp-base/Makefile
index 48f4842f271..7062e42521a 100644
--- a/graphics/gimp-base/Makefile
+++ b/graphics/gimp-base/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2002/03/17 02:40:57 jmc Exp $
+# $NetBSD: Makefile,v 1.4 2002/09/04 14:47:36 agc Exp $
DISTNAME= gimp-1.2.3
PKGNAME= gimp-base-1.2.3
@@ -33,7 +33,9 @@ CONFIGURE_ENV+= MPEG="mpeg"
CONFIGURE_ENV+= LIBMPEG="-lmpeg_lib"
CONFIGURE_ENV+= GAP_DECODE_MPEG="gap_decode_mpeg"
-LDFLAGS+= -Wl,--export-dynamic
+# Ensure we export symbols in the linked shared object.
+LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS}
+
MAKE_ENV+= X11BASE=${X11BASE}
PLIST_SUBST+= LOCALBASE=${LOCALBASE}
diff --git a/graphics/kdegraphics2/Makefile b/graphics/kdegraphics2/Makefile
index 4766bd0d181..8fc584517a2 100644
--- a/graphics/kdegraphics2/Makefile
+++ b/graphics/kdegraphics2/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2002/03/13 17:37:11 fredb Exp $
+# $NetBSD: Makefile,v 1.9 2002/09/04 14:47:37 agc Exp $
DISTNAME= kdegraphics-2.2.2
PKGREVISION= 1
@@ -16,11 +16,8 @@ USE_BUILDLINK_ONLY= YES
CONFIGURE_ARGS+= --without-kamera # requires gPhoto2, gpio
-.include "../../mk/bsd.prefs.mk"
-
-.if ${OPSYS} == "NetBSD"
-LIBS= -Wl,--export-dynamic
-.endif
+# Ensure we export symbols in the linked shared object.
+LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS}
.include "../../graphics/tiff/buildlink.mk"
.include "../../x11/kde2/buildlink.mk"
diff --git a/graphics/kdegraphics3/Makefile b/graphics/kdegraphics3/Makefile
index 58b63c14f49..237b09a5640 100644
--- a/graphics/kdegraphics3/Makefile
+++ b/graphics/kdegraphics3/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2002/08/28 07:15:28 skrll Exp $
+# $NetBSD: Makefile,v 1.5 2002/09/04 14:47:37 agc Exp $
DISTNAME= kdegraphics-3.0.3
CATEGORIES= graphics
@@ -14,11 +14,8 @@ USE_BUILDLINK_ONLY= YES
CONFIGURE_ARGS+= --without-kamera # requires gPhoto2, gpio
-.include "../../mk/bsd.prefs.mk"
-
-.if ${OPSYS} == "NetBSD"
-LIBS= -Wl,--export-dynamic
-.endif
+# Ensure we export symbols in the linked shared object.
+LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS}
#.include "../../graphics/tiff/buildlink.mk"
.include "../../graphics/imlib/buildlink.mk"
diff --git a/misc/kdeutils2/Makefile b/misc/kdeutils2/Makefile
index d4794169169..d53902dd188 100644
--- a/misc/kdeutils2/Makefile
+++ b/misc/kdeutils2/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2002/03/13 17:37:27 fredb Exp $
+# $NetBSD: Makefile,v 1.11 2002/09/04 14:47:38 agc Exp $
DISTNAME= kdeutils-2.2.2
PKGREVISION= 1
@@ -10,14 +10,13 @@ BUILD_DEPENDS+= qt2-designer-kde>=2.3.1nb2:../../x11/qt2-designer-kde
USE_BUILDLINK_ONLY= YES
-.include "../../mk/bsd.prefs.mk"
+# Ensure we export symbols in the linked shared object.
+LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS}
-.if ${OPSYS} == "NetBSD"
-LIBS= -Wl,--export-dynamic
+.include "../../mk/bsd.prefs.mk"
-. if exists(/usr/include/machine/apmvar.h)
+.if ${OPSYS} == "NetBSD" && exists(/usr/include/machine/apmvar.h)
CPPFLAGS+= -D__NetBSD_APM__
-. endif
.endif
post-install:
diff --git a/misc/kdeutils3/Makefile b/misc/kdeutils3/Makefile
index 2b9332a0823..fe7ddd65383 100644
--- a/misc/kdeutils3/Makefile
+++ b/misc/kdeutils3/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2002/08/28 07:15:37 skrll Exp $
+# $NetBSD: Makefile,v 1.4 2002/09/04 14:47:38 agc Exp $
DISTNAME= kdeutils-3.0.3
COMMENT= Utilities for the KDE integrated X11 desktop
@@ -7,14 +7,13 @@ COMMENT= Utilities for the KDE integrated X11 desktop
USE_BUILDLINK_ONLY= YES
-.include "../../mk/bsd.prefs.mk"
+# Ensure we export symbols in the linked shared object.
+LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS}
-.if ${OPSYS} == "NetBSD"
-LIBS= -Wl,--export-dynamic
+.include "../../mk/bsd.prefs.mk"
-. if exists(/usr/include/machine/apmvar.h)
-CPPFLAGS+= -D__NetBSD_APM__
-. endif
+.if ${OPSYS} == "NetBSD" && exists(/usr/include/machine/apmvar.h)
+.include "../../mk/bsd.prefs.mk"
.endif
post-install:
diff --git a/misc/koffice/Makefile.common b/misc/koffice/Makefile.common
index 7f13cc2baad..ab075e32806 100644
--- a/misc/koffice/Makefile.common
+++ b/misc/koffice/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.1 2002/06/20 19:13:50 jschauma Exp $
+# $NetBSD: Makefile.common,v 1.2 2002/09/04 14:47:38 agc Exp $
CATEGORIES= misc kde
VERSION= 1.1.1
@@ -11,9 +11,10 @@ USE_BUILDLINK_ONLY= YES
REPLACE_PERL= kpresenter/kprconverter.pl
-.if ${OPSYS} == "NetBSD"
-LIBS+= -Wl,--export-dynamic
+# Ensure we export symbols in the linked shared object.
+LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS}
+.if ${OPSYS} == "NetBSD"
# On egcs-1.1.2, the C++ compiler system isn't quite ISO-compliant. It lacks
# a std::auto_ptr implementation in <memory>, doesn't handle static inline
# functions in headers properly (although that concept, in itself, is quite
diff --git a/mk/defs.Darwin.mk b/mk/defs.Darwin.mk
index 4d8eda806bd..f8324abee1b 100644
--- a/mk/defs.Darwin.mk
+++ b/mk/defs.Darwin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: defs.Darwin.mk,v 1.27 2002/08/28 11:06:18 seb Exp $
+# $NetBSD: defs.Darwin.mk,v 1.28 2002/09/04 14:47:32 agc Exp $
#
# Variable definitions for the Darwin operating system.
@@ -58,6 +58,7 @@ XARGS?= /usr/bin/xargs
CPP_PRECOMP_FLAGS?= -no-cpp-precomp # use the GNU cpp, not the OS X cpp
DEF_UMASK?= 0022
DEFAULT_SERIAL_DEVICE?= /dev/null
+EXPORT_SYMBOLS_LDFLAGS?= # Don't add symbols to the dynamic symbol table
GROUPADD?= ${FALSE} # XXX - Fix me!
MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type
MOTIF12_TYPE_DEFAULT?= lesstif12 # default 1.2 compatible libs type
diff --git a/mk/defs.Linux.mk b/mk/defs.Linux.mk
index c12cf48f093..61d8648fc2e 100644
--- a/mk/defs.Linux.mk
+++ b/mk/defs.Linux.mk
@@ -1,4 +1,4 @@
-# $NetBSD: defs.Linux.mk,v 1.29 2002/08/28 11:06:18 seb Exp $
+# $NetBSD: defs.Linux.mk,v 1.30 2002/09/04 14:47:33 agc Exp $
#
# Variable definitions for the Linux operating system.
@@ -62,6 +62,7 @@ XARGS?= /usr/bin/xargs -r
CPP_PRECOMP_FLAGS?= # unset
DEF_UMASK?= 022
DEFAULT_SERIAL_DEVICE?= /dev/null
+EXPORT_SYMBOLS_LDFLAGS?= # Don't add symbols to the dynamic symbol table
GROUPADD?= /usr/sbin/groupadd
MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type
MOTIF12_TYPE_DEFAULT?= lesstif12 # default 1.2 compatible libs type
diff --git a/mk/defs.NetBSD.mk b/mk/defs.NetBSD.mk
index eb8ff210eb5..e89fbe45b68 100644
--- a/mk/defs.NetBSD.mk
+++ b/mk/defs.NetBSD.mk
@@ -1,4 +1,4 @@
-# $NetBSD: defs.NetBSD.mk,v 1.27 2002/08/28 11:06:19 seb Exp $
+# $NetBSD: defs.NetBSD.mk,v 1.28 2002/09/04 14:47:33 agc Exp $
#
# Variable definitions for the NetBSD operating system.
@@ -68,6 +68,11 @@ DEPENDS+= user>=20000313:../../sysutils/user
CPP_PRECOMP_FLAGS?= # unset
DEF_UMASK?= 0022
+.if ${OBJECT_FMT} == "ELF"
+EXPORT_SYMBOLS_LDFLAGS?=-Wl,-E # add symbols to the dynamic symbol table
+.else
+EXPORT_SYMBOLS_LDFLAGS?=-Wl,--export-dynamic
+.endif
MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type
MOTIF12_TYPE_DEFAULT?= lesstif12 # default 1.2 compatible libs type
NOLOGIN?= /sbin/nologin
diff --git a/mk/defs.SunOS.mk b/mk/defs.SunOS.mk
index 6a23849ddd0..5a7d34d23e9 100644
--- a/mk/defs.SunOS.mk
+++ b/mk/defs.SunOS.mk
@@ -1,4 +1,4 @@
-# $NetBSD: defs.SunOS.mk,v 1.27 2002/08/28 11:06:19 seb Exp $
+# $NetBSD: defs.SunOS.mk,v 1.28 2002/09/04 14:47:34 agc Exp $
#
# Variable definitions for the SunOS/Solaris operating system.
@@ -70,6 +70,7 @@ XARGS?= /usr/bin/xargs
CPP_PRECOMP_FLAGS?= # unset
DEF_UMASK?= 022
DEFAULT_SERIAL_DEVICE?= /dev/null
+EXPORT_SYMBOLS_LDFLAGS?= # Don't add symbols to the dynamic symbol table
GROUPADD?= /usr/sbin/groupadd
MOTIF_TYPE_DEFAULT?= dt # default 2.0 compatible libs type
MOTIF12_TYPE_DEFAULT?= dt # default 1.2 compatible libs type
diff --git a/www/ap-php4/Makefile b/www/ap-php4/Makefile
index f91c1e84c32..2c5d59ad8b3 100644
--- a/www/ap-php4/Makefile
+++ b/www/ap-php4/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2002/08/25 21:51:51 jlam Exp $
+# $NetBSD: Makefile,v 1.23 2002/09/04 14:47:39 agc Exp $
PKGNAME= ap-php-${PHP_BASE_VERS}
PKGREVISION= # empty
@@ -9,12 +9,8 @@ DEPENDS+= php>=${PHP_BASE_VERS}:../../www/php4
USE_BUILDLINK2= YES
APACHE_MODULE= YES
-.include "../../www/php4/Makefile.php"
-
# Ensure we export symbols in the linked shared object.
-.if ${OPSYS} != "SunOS"
-LDFLAGS+= -Wl,--export-dynamic
-.endif
+LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS}
do-install:
${INSTALL_DATA} ${WRKSRC}/.libs/libphp4.so \
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
diff --git a/www/php3/Makefile.module b/www/php3/Makefile.module
index c9e5cab48b2..57f5a14e0fe 100644
--- a/www/php3/Makefile.module
+++ b/www/php3/Makefile.module
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.module,v 1.3 2002/07/24 19:45:31 jlam Exp $
+# $NetBSD: Makefile.module,v 1.4 2002/09/04 14:47:41 agc Exp $
.include "../../www/php3/Makefile.common"
@@ -24,8 +24,8 @@ LD_SHAREABLE_FLAG= -G
LD_SHAREABLE_FLAG= -Bshareable
.endif
-# Ensure we export symbols in the linked shared objects.
-LDFLAGS+= -Wl,--export-dynamic
+# Ensure we export symbols in the linked shared object.
+LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS}
MOD_CPPFLAGS+= -I${WRKSRC} -I${MODULESDIR} -fPIC -DPIC -DCOMPILE_DL
MOD_LDFLAGS+= ${LDFLAGS:S/-Wl,//g}
diff --git a/www/php4/Makefile b/www/php4/Makefile
index b72f50110c6..51dff1b0bf2 100644
--- a/www/php4/Makefile
+++ b/www/php4/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.25 2002/08/26 00:16:57 grant Exp $
+# $NetBSD: Makefile,v 1.26 2002/09/04 14:47:39 agc Exp $
PKGNAME= php-${PHP_BASE_VERS}
PKGREVISION= # empty
@@ -27,9 +27,8 @@ MAKE_ENV+= LINK_LIBGCC_LDFLAGS="${LINK_LIBGCC_LDFLAGS}"
.endif
# Ensure we export symbols in the linked shared object.
-.if ${OPSYS} != "SunOS"
-LDFLAGS+= -Wl,--export-dynamic
-.endif
+LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS}
+MAKE_ENV+= EXPORT_SYMBOLS_LDFLAGS="${EXPORT_SYMBOLS_LDFLAGS}"
CONF_FILES= ${EGDIR}/php.ini-recommended ${PKG_SYSCONFDIR}/php.ini
OWN_DIRS= ${PREFIX}/${PHP_EXTENSION_DIR}
diff --git a/www/php4/Makefile.module b/www/php4/Makefile.module
index 6b10d18ab5b..dacfc42a63c 100644
--- a/www/php4/Makefile.module
+++ b/www/php4/Makefile.module
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.module,v 1.17 2002/08/26 00:16:57 grant Exp $
+# $NetBSD: Makefile.module,v 1.18 2002/09/04 14:47:40 agc Exp $
#
# This Makefile is provided to ease creating PHP4 packages for the extension
# modules distributed in the PHP4 sources.
@@ -32,10 +32,9 @@ USE_CONFIG_WRAPPER= YES
USE_LIBTOOL= YES
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
-# Ensure we export symbols in the linked shared objects.
-.if ${OPSYS} != "SunOS"
-LDFLAGS+= -Wl,--export-dynamic
-.endif
+# Ensure we export symbols in the linked shared object.
+LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS}
+MAKE_ENV+= EXPORT_SYMBOLS_LDFLAGS="${EXPORT_SYMBOLS_LDFLAGS}"
PLIST_SRC= ${.CURDIR}/../../www/php4/PLIST.module
MESSAGE_SRC= ${.CURDIR}/../../www/php4/MESSAGE.module
diff --git a/www/php4/distinfo b/www/php4/distinfo
index ed9b18827e0..18d905841ad 100644
--- a/www/php4/distinfo
+++ b/www/php4/distinfo
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.11 2002/08/26 00:42:59 grant Exp $
+$NetBSD: distinfo,v 1.12 2002/09/04 14:47:40 agc Exp $
SHA1 (php-4.1.2.tar.gz) = fc4f9685b2b26d6e12af2e746a34fadfe57f0466
Size (php-4.1.2.tar.gz) = 3359964 bytes
-SHA1 (patch-aa) = 08f98c6b41c24a2aa8fa417bba50cf0cb5f711af
+SHA1 (patch-aa) = 09fb15fde09bf866d9be016839f33c889d9cefb9
SHA1 (patch-ac) = 9478c18dbe18e8c4c05dffce31fa3f923562c832
SHA1 (patch-ad) = 4ac02d0e0e5bd612254020d46292534a0e9445b0
SHA1 (patch-ae) = e7acc06a63f47053c81ab442b53c68d89d122f78
diff --git a/www/php4/patches/patch-aa b/www/php4/patches/patch-aa
index 39eb7c9a362..8c517419aa1 100644
--- a/www/php4/patches/patch-aa
+++ b/www/php4/patches/patch-aa
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.7 2001/10/16 04:54:24 jlam Exp $
+$NetBSD: patch-aa,v 1.8 2002/09/04 14:47:40 agc Exp $
--- Makefile.in.orig Sat Apr 21 21:09:12 2001
+++ Makefile.in
@@ -7,7 +7,7 @@ $NetBSD: patch-aa,v 1.7 2001/10/16 04:54:24 jlam Exp $
PROGRAM_SOURCES = stub.c
PROGRAM_LDADD = libphp4.la $(EXT_PROGRAM_LDADD)
-PROGRAM_LDFLAGS = -export-dynamic
-+PROGRAM_LDFLAGS = -static -export-dynamic $(LINK_LIBGCC_LDFLAGS)
++PROGRAM_LDFLAGS = -static ${EXPORT_SYMBOLS_LDFLAGS} $(LINK_LIBGCC_LDFLAGS)
PROGRAM_DEPENDENCIES = $(PROGRAM_LDADD)
targets = $(LTLIBRARY_NAME) $(PHP_PROGRAM)