pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/print/ghostscript-agpl ghostscript-agpl: Add _XOPEN_SO...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/18ea48bf5cc8
branches:  trunk
changeset: 374551:18ea48bf5cc8
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Jan 25 10:31:24 2018 +0000

description:
ghostscript-agpl: Add _XOPEN_SOURCE workaround.

diffstat:

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

diffs (21 lines):

diff -r 5533343c7c01 -r 18ea48bf5cc8 print/ghostscript-agpl/Makefile
--- a/print/ghostscript-agpl/Makefile   Thu Jan 25 10:29:21 2018 +0000
+++ b/print/ghostscript-agpl/Makefile   Thu Jan 25 10:31:24 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.28 2017/11/12 16:03:35 khorben Exp $
+# $NetBSD: Makefile,v 1.29 2018/01/25 10:31:24 jperkin Exp $
 
 DISTNAME=      ghostscript-${GS_VERSION}
 PKGNAME=       ${DISTNAME:S/ghostscript/ghostscript-agpl/}
@@ -62,6 +62,11 @@
 CFLAGS+=               -fPIC
 .endif
 
+# 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
 # require linking against libiconv when it should do so.
 BUILDLINK_TRANSFORM.IRIX+=     l:fontconfig:fontconfig:iconv



Home | Main Index | Thread Index | Old Index