summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiz <wiz>2002-10-24 16:59:48 +0000
committerwiz <wiz>2002-10-24 16:59:48 +0000
commitb4dc7f7aa177f4538b3a5aa2eed1fbbe64094c47 (patch)
tree7f4e00a60a47a00c58f2d38ac1f086b0cb1ecd83
parent652d793b25258c952619bf488d36a19593d12663 (diff)
downloadpkgsrc-b4dc7f7aa177f4538b3a5aa2eed1fbbe64094c47.tar.gz
Pull the following up to the 1.6 branch (requested by agc):
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)
-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/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/Makefile6
-rw-r--r--www/galeon/Makefile10
-rw-r--r--www/php3/Makefile.module6
-rw-r--r--www/php4/Makefile5
-rw-r--r--www/php4/Makefile.module5
-rw-r--r--www/php4/distinfo4
-rw-r--r--www/php4/patches/patch-aa4
20 files changed, 61 insertions, 68 deletions
diff --git a/audio/arts/Makefile b/audio/arts/Makefile
index 8088382c98d..769d0ed3a4d 100644
--- a/audio/arts/Makefile
+++ b/audio/arts/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2002/08/08 16:17:04 jlam Exp $
+# $NetBSD: Makefile,v 1.6.4.1 2002/10/24 16:59:48 wiz Exp $
DISTNAME= arts-1.0.2
PKGREVISION= 1
@@ -15,11 +15,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..0177c7bd58d 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.12.4.1 2002/10/24 16:59:49 wiz 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 c887d690a20..0a8049eec2b 100644
--- a/audio/kdemultimedia3/Makefile
+++ b/audio/kdemultimedia3/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2002/08/01 05:48:04 jlam Exp $
+# $NetBSD: Makefile,v 1.3.4.1 2002/10/24 16:59:50 wiz Exp $
DISTNAME= kdemultimedia-3.0.2
CATEGORIES= audio
@@ -13,11 +13,8 @@ USE_BUILDLINK_ONLY= YES
#USE_CONFIG_WRAPPER= yes # $GTK_CONFIG
#CONFIGURE_ENV+= ac_cv_path_kde_artsplug_compiles="${ARTSC_CONFIG}"
-.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/arts/buildlink.mk"
.include "../../x11/kde3/buildlink.mk"
diff --git a/graphics/dx/Makefile b/graphics/dx/Makefile
index e2af14ad519..ad07dd3a1d2 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.15.8.1 2002/10/24 16:59:50 wiz 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..8fff68f4009 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.3.8.1 2002/10/24 16:59:50 wiz 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..515a8753e86 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.8.8.1 2002/10/24 16:59:51 wiz 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 d79b78db060..fac20ebb207 100644
--- a/graphics/kdegraphics3/Makefile
+++ b/graphics/kdegraphics3/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2002/07/17 07:54:05 skrll Exp $
+# $NetBSD: Makefile,v 1.2.6.1 2002/10/24 16:59:51 wiz Exp $
DISTNAME= kdegraphics-3.0.2
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..95d058fd9f5 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.10.8.1 2002/10/24 16:59:52 wiz 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/koffice/Makefile.common b/misc/koffice/Makefile.common
index 7f13cc2baad..b515856276a 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.1.8.1 2002/10/24 16:59:52 wiz 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 1a40f81ef54..ec3f8eddb52 100644
--- a/mk/defs.Darwin.mk
+++ b/mk/defs.Darwin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: defs.Darwin.mk,v 1.26 2002/07/15 16:24:01 schmonz Exp $
+# $NetBSD: defs.Darwin.mk,v 1.26.6.1 2002/10/24 16:59:53 wiz 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 a290700bc0f..ac138b6df76 100644
--- a/mk/defs.Linux.mk
+++ b/mk/defs.Linux.mk
@@ -1,4 +1,4 @@
-# $NetBSD: defs.Linux.mk,v 1.28 2002/07/15 16:24:01 schmonz Exp $
+# $NetBSD: defs.Linux.mk,v 1.28.6.1 2002/10/24 16:59:53 wiz 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 22858ad447d..f20124d4bd6 100644
--- a/mk/defs.NetBSD.mk
+++ b/mk/defs.NetBSD.mk
@@ -1,4 +1,4 @@
-# $NetBSD: defs.NetBSD.mk,v 1.26 2002/07/15 16:24:01 schmonz Exp $
+# $NetBSD: defs.NetBSD.mk,v 1.26.6.1 2002/10/24 16:59:53 wiz 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 d19affcea5d..c7286586b32 100644
--- a/mk/defs.SunOS.mk
+++ b/mk/defs.SunOS.mk
@@ -1,4 +1,4 @@
-# $NetBSD: defs.SunOS.mk,v 1.26 2002/07/15 16:24:01 schmonz Exp $
+# $NetBSD: defs.SunOS.mk,v 1.26.6.1 2002/10/24 16:59:53 wiz 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 4bc8add773c..237d62bab1d 100644
--- a/www/ap-php4/Makefile
+++ b/www/ap-php4/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2002/02/28 18:32:19 jlam Exp $
+# $NetBSD: Makefile,v 1.21.8.1 2002/10/24 16:59:54 wiz Exp $
PKGNAME= ap-php-${PHP_BASE_VERS}
PKGREVISION= # empty
@@ -12,9 +12,7 @@ USE_BUILDLINK_ONLY= 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 6c75b25bf51..48bb6685d12 100644
--- a/www/galeon/Makefile
+++ b/www/galeon/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.33 2002/07/16 13:16:05 agc Exp $
+# $NetBSD: Makefile,v 1.33.6.1 2002/10/24 16:59:54 wiz Exp $
DISTNAME= galeon-1.2.5
CATEGORIES= www
@@ -36,11 +36,9 @@ CONFIGURE_ARGS+= --with-mozilla-includes=${PREFIX}/include/mozilla \
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..3784dcdfe91 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.3.4.1 2002/10/24 16:59:55 wiz 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 2f71cc052d1..f0393194f5c 100644
--- a/www/php4/Makefile
+++ b/www/php4/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2002/02/28 06:14:46 jlam Exp $
+# $NetBSD: Makefile,v 1.23.8.1 2002/10/24 16:59:55 wiz Exp $
PKGNAME= php-${PHP_BASE_VERS}
PKGREVISION= # empty
@@ -12,7 +12,8 @@ USE_BUILDLINK_ONLY= YES
.include "Makefile.php"
# Ensure we export symbols in the linked shared object.
-LDFLAGS+= -Wl,--export-dynamic
+LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS}
+MAKE_ENV+= EXPORT_SYMBOLS_LDFLAGS="${EXPORT_SYMBOLS_LDFLAGS}"
CGIDIR= ${PREFIX}/libexec/cgi-bin
EGDIR= ${PREFIX}/share/examples/php
diff --git a/www/php4/Makefile.module b/www/php4/Makefile.module
index 713a94a4bb5..67c4f8a6ae5 100644
--- a/www/php4/Makefile.module
+++ b/www/php4/Makefile.module
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.module,v 1.15 2002/03/01 22:51:42 jlam Exp $
+# $NetBSD: Makefile.module,v 1.15.8.1 2002/10/24 16:59:55 wiz Exp $
#
# This Makefile is provided to ease creating PHP4 packages for the extension
# modules distributed in the PHP4 sources.
@@ -32,7 +32,8 @@ USE_LIBTOOL= YES
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
# Ensure we export symbols in the linked shared objects.
-LDFLAGS+= -Wl,--export-dynamic
+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 6c2e5ae17ab..4f30266dcb2 100644
--- a/www/php4/distinfo
+++ b/www/php4/distinfo
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.8 2002/02/28 06:14:46 jlam Exp $
+$NetBSD: distinfo,v 1.8.8.1 2002/10/24 16:59:55 wiz 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) = 3b90e5c60493689cfad5ea3563f19d03b7b3f354
SHA1 (patch-ae) = e7acc06a63f47053c81ab442b53c68d89d122f78
diff --git a/www/php4/patches/patch-aa b/www/php4/patches/patch-aa
index 39eb7c9a362..89ef0756df6 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.7.8.1 2002/10/24 16:59:56 wiz 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)