poco: Fix build with newer GCC on SunOS.

This commit is contained in:
jperkin 2018-07-27 21:03:26 +00:00
parent 0f262c076b
commit a5d2f2d9d6

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile.common,v 1.14 2018/02/01 16:43:04 jperkin Exp $
# $NetBSD: Makefile.common,v 1.15 2018/07/27 21:03:26 jperkin Exp $
#
# used by devel/poco/Makefile
# used by databases/poco-data/Makefile
@ -51,7 +51,7 @@ CONFIGURE_ARGS+= --config=SunOS-SunStudio
. else
CONFIGURE_ARGS+= --config=SunOS-GCC
# GCC 4.6 and newer forces c99 for C++, need _XOPEN_SOURCE=600
. if !empty(CC_VERSION:Mgcc-4.[6-9].*) || !empty(PKGSRC_COMPILER:Mclang)
. if !empty(CC_VERSION:Mgcc-4.[6-9].*) || !empty(CC_VERSION:Mgcc-[5-9].*) || !empty(PKGSRC_COMPILER:Mclang)
MAKE_ENV+= XOPEN_SOURCE=600
. else
MAKE_ENV+= XOPEN_SOURCE=500