summaryrefslogtreecommitdiff
path: root/editors/emacs
diff options
context:
space:
mode:
authorbouyer <bouyer@pkgsrc.org>2004-03-20 17:58:56 +0000
committerbouyer <bouyer@pkgsrc.org>2004-03-20 17:58:56 +0000
commitedf4700caf06acf31378cea3555e73e735ecfbd9 (patch)
tree1bebcd83b29a15a85323d7e258434f6ee71a3a44 /editors/emacs
parent6a56a0628e39fe25e4c28aae34ea105e9523eaa8 (diff)
downloadpkgsrc-edf4700caf06acf31378cea3555e73e735ecfbd9.tar.gz
-fno-zero-initialized-in-bss is required in CFLAGS on SunOS with gcc3,
otherwise emacs core dump on exit. Found this on an emacs mailing list.
Diffstat (limited to 'editors/emacs')
-rw-r--r--editors/emacs/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/editors/emacs/Makefile b/editors/emacs/Makefile
index b391a79eeac..0237aa0c2fc 100644
--- a/editors/emacs/Makefile
+++ b/editors/emacs/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.68 2004/02/25 19:11:43 drochner Exp $
+# $NetBSD: Makefile,v 1.69 2004/03/20 17:58:56 bouyer Exp $
# FreeBSD Id: Makefile,v 1.30 1997/12/14 02:03:53 asami Exp
DISTNAME= emacs-21.3
@@ -54,6 +54,11 @@ CONFIGURE_ARGS+= --with-png
LDFLAGS+= -Wl,-z,nocombreloc
.endif
+.include "../../mk/compiler.mk"
+.if ((${OPSYS} == "SunOS") && !empty(CC_VERSION:Mgcc-3.*))
+CFLAGS+= -fno-zero-initialized-in-bss
+.endif
+
INFO_FILES= ada-mode autotype ccmode cl dired-x ebrowse ediff efaq emacs
INFO_FILES+= emacs-mime eshell eudc forms gnus idlwave message mh-e pcl-cvs
INFO_FILES+= reftex sc speedbar vip viper widget woman