pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/print/ghostscript-gpl Fix SunOS build with GCC 7 and n...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6d1c6b2d6e31
branches:  trunk
changeset: 362752:6d1c6b2d6e31
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Wed May 24 15:19:12 2017 +0000

description:
Fix SunOS build with GCC 7 and newer.

diffstat:

 print/ghostscript-gpl/Makefile |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 327b5ecffa19 -r 6d1c6b2d6e31 print/ghostscript-gpl/Makefile
--- a/print/ghostscript-gpl/Makefile    Wed May 24 15:02:54 2017 +0000
+++ b/print/ghostscript-gpl/Makefile    Wed May 24 15:19:12 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 2017/05/19 13:29:04 prlw1 Exp $
+# $NetBSD: Makefile,v 1.27 2017/05/24 15:19:12 jperkin Exp $
 
 DISTNAME=      ghostscript-${GS_VERSION}
 PKGNAME=       ${DISTNAME:S/ghostscript/ghostscript-gpl/}
@@ -75,6 +75,10 @@
 CFLAGS+=               -fPIC
 .endif
 
+.if ${OPSYS} == "SunOS" && !empty(CC_VERSION:Mgcc-[7-9]*)
+CPPFLAGS+=             -D_XOPEN_SOURCE=600 -D__EXTENSIONS__
+.endif
+
 # Interim IRIX build fix, the real problem is that fontconfig.pc doesn't
 # require linking against libiconv when it should do so.
 BUILDLINK_TRANSFORM.IRIX+=     l:fontconfig:fontconfig:iconv



Home | Main Index | Thread Index | Old Index