pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/poco poco: Support newer GCC and clang on SunOS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/94018aa8f199
branches:  trunk
changeset: 374970:94018aa8f199
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Feb 01 16:43:04 2018 +0000

description:
poco: Support newer GCC and clang on SunOS.

diffstat:

 devel/poco/Makefile.common |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (28 lines):

diff -r 08d29eda35b3 -r 94018aa8f199 devel/poco/Makefile.common
--- a/devel/poco/Makefile.common        Thu Feb 01 16:06:05 2018 +0000
+++ b/devel/poco/Makefile.common        Thu Feb 01 16:43:04 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.13 2016/02/25 12:12:49 jperkin Exp $
+# $NetBSD: Makefile.common,v 1.14 2018/02/01 16:43:04 jperkin Exp $
 #
 # used by devel/poco/Makefile
 # used by databases/poco-data/Makefile
@@ -48,16 +48,14 @@
 .include "../../mk/compiler.mk"
 . if ${PKGSRC_COMPILER} == "sunpro"
 CONFIGURE_ARGS+=       --config=SunOS-SunStudio
-. elif ${PKGSRC_COMPILER} == "gcc"
+. 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].*)
+.  if !empty(CC_VERSION:Mgcc-4.[6-9].*) || !empty(PKGSRC_COMPILER:Mclang)
 MAKE_ENV+=             XOPEN_SOURCE=600
 .  else
 MAKE_ENV+=             XOPEN_SOURCE=500
 .  endif
-. else
-CONFIGURE_ARGS+=       --config=SunOS
 . endif
 .endif
 



Home | Main Index | Thread Index | Old Index