pkgsrc-Changes archive

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

CVS commit: pkgsrc/print/ghostscript-gpl



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Wed May 24 15:19:12 UTC 2017

Modified Files:
        pkgsrc/print/ghostscript-gpl: Makefile

Log Message:
Fix SunOS build with GCC 7 and newer.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 pkgsrc/print/ghostscript-gpl/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/print/ghostscript-gpl/Makefile
diff -u pkgsrc/print/ghostscript-gpl/Makefile:1.26 pkgsrc/print/ghostscript-gpl/Makefile:1.27
--- pkgsrc/print/ghostscript-gpl/Makefile:1.26  Fri May 19 13:29:04 2017
+++ pkgsrc/print/ghostscript-gpl/Makefile       Wed May 24 15:19:12 2017
@@ -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 @@ CONFIGURE_ENV.HPUX+= ac_cv_func_fopen64=
 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