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:           Thu Jan 25 10:34:25 UTC 2018

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

Log Message:
ghostscript-gpl: Add _XOPEN_SOURCE workaround for clang too.


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 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.37 pkgsrc/print/ghostscript-gpl/Makefile:1.38
--- pkgsrc/print/ghostscript-gpl/Makefile:1.37  Thu Nov 23 17:19:43 2017
+++ pkgsrc/print/ghostscript-gpl/Makefile       Thu Jan 25 10:34:25 2018
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.37 2017/11/23 17:19:43 wiz Exp $
+# $NetBSD: Makefile,v 1.38 2018/01/25 10:34:25 jperkin Exp $
 
 DISTNAME=      ghostscript-${GS_VERSION}
 PKGNAME=       ${DISTNAME:S/ghostscript/ghostscript-gpl/}
@@ -76,8 +76,9 @@ CONFIGURE_ENV.HPUX+=  ac_cv_func_fopen64=
 CFLAGS+=               -fPIC
 .endif
 
-.if ${OPSYS} == "SunOS" && !empty(CC_VERSION:Mgcc-[6-9]*)
-CPPFLAGS+=             -D_XOPEN_SOURCE=600 -D__EXTENSIONS__
+# Not ideal but too many files hardcode _XOPEN_SOURCE=500.
+.if !empty(CC_VERSION:Mgcc-[6-9]*) || !empty(PKGSRC_COMPILER:Mclang)
+CPPFLAGS.SunOS+=       -D_XOPEN_SOURCE=600 -D__EXTENSIONS__
 .endif
 
 # Interim IRIX build fix, the real problem is that fontconfig.pc doesn't



Home | Main Index | Thread Index | Old Index