pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/editors/emacs -fno-zero-initialized-in-bss is required...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2b8b962fdf12
branches:  trunk
changeset: 471171:2b8b962fdf12
user:      bouyer <bouyer%pkgsrc.org@localhost>
date:      Sat Mar 20 17:58:56 2004 +0000

description:
-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:

 editors/emacs/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r c334d9086e0f -r 2b8b962fdf12 editors/emacs/Makefile
--- a/editors/emacs/Makefile    Sat Mar 20 17:29:26 2004 +0000
+++ b/editors/emacs/Makefile    Sat Mar 20 17:58:56 2004 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index