pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/print/ghostscript-gpl ghostscript-gpl: Add _XOPEN_SOUR...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/047a1bda2184
branches:  trunk
changeset: 374552:047a1bda2184
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Jan 25 10:34:25 2018 +0000

description:
ghostscript-gpl: Add _XOPEN_SOURCE workaround for clang too.

diffstat:

 print/ghostscript-gpl/Makefile |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r 18ea48bf5cc8 -r 047a1bda2184 print/ghostscript-gpl/Makefile
--- a/print/ghostscript-gpl/Makefile    Thu Jan 25 10:31:24 2018 +0000
+++ b/print/ghostscript-gpl/Makefile    Thu Jan 25 10:34:25 2018 +0000
@@ -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 @@
 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