diff options
author | jperkin <jperkin@pkgsrc.org> | 2018-01-25 10:34:25 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2018-01-25 10:34:25 +0000 |
commit | afaf4c679a55d1c44aa31f2c77d073bd0a79f990 (patch) | |
tree | 8b2c7ca476317118d308e0bd5f83f2ef53a2ac0b /print | |
parent | 775f36b80b1763f024b294182bc4231f5b1e641e (diff) | |
download | pkgsrc-afaf4c679a55d1c44aa31f2c77d073bd0a79f990.tar.gz |
ghostscript-gpl: Add _XOPEN_SOURCE workaround for clang too.
Diffstat (limited to 'print')
-rw-r--r-- | print/ghostscript-gpl/Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/print/ghostscript-gpl/Makefile b/print/ghostscript-gpl/Makefile index 3ef5c8fc78d..f818872efd6 100644 --- a/print/ghostscript-gpl/Makefile +++ b/print/ghostscript-gpl/Makefile @@ -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=no 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 |