pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/ncurses When GCC version is 5.x, pass the -P fla...
details: https://anonhg.NetBSD.org/pkgsrc/rev/5a4790f76f8e
branches: trunk
changeset: 652439:5a4790f76f8e
user: sevan <sevan%pkgsrc.org@localhost>
date: Tue Jun 02 01:03:57 2015 +0000
description:
When GCC version is 5.x, pass the -P flag to cpp, preventing the generation of line markers
in the output from cpp.
Resolves build issue on DragonFlyBSD development snapshots which include GCC 5.1.1
GCC bug 60723
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60723
diffstat:
devel/ncurses/Makefile.common | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r 1dedc90aee61 -r 5a4790f76f8e devel/ncurses/Makefile.common
--- a/devel/ncurses/Makefile.common Mon Jun 01 22:55:42 2015 +0000
+++ b/devel/ncurses/Makefile.common Tue Jun 02 01:03:57 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.26 2014/12/15 11:46:34 jperkin Exp $
+# $NetBSD: Makefile.common,v 1.27 2015/06/02 01:03:57 sevan Exp $
#
# used by devel/ncurses/Makefile
# used by devel/ncursesw/Makefile
@@ -61,9 +61,10 @@
. endif
.endif
+.include "../../mk/compiler.mk"
+
.if ${OPSYS} == "SunOS"
USE_LANGUAGES+= c99
-.include "../../mk/compiler.mk"
. if !empty(CC_VERSION:Mgcc-4.*)
#This may yet need to be adapted for systems prior to Solaris 10
BUILDLINK_TRANSFORM+= opt:-D_XOPEN_SOURCE=500:-D_POSIX_C_SOURCE=200112L
@@ -75,6 +76,12 @@
TERMINFODIR= share/terminfo
.endif
+.if !empty(CC_VERSION:Mgcc-5.*)
+# Inhibit generation of line markers in the output from the preprocessor
+# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60723
+CPPFLAGS+= -P
+.endif
+
# This prevents tic from writing into ~/.terminfo
INSTALLATION_DIRS+= ${TERMINFODIR}
Home |
Main Index |
Thread Index |
Old Index