diff options
author | tron <tron@pkgsrc.org> | 2013-12-28 20:23:44 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2013-12-28 20:23:44 +0000 |
commit | 5a2809d2269c35f37ef1faba07a458c079880124 (patch) | |
tree | 2682f4af83c5302f74e6f0369153598826e16f64 /textproc/libxml2 | |
parent | 06a66e91a41c03a1ec1be649efebf99f7c4b3f79 (diff) | |
download | pkgsrc-5a2809d2269c35f37ef1faba07a458c079880124.tar.gz |
Fix build with GCC (4.8?) under Solaris.
This kind of build problem should probably be handled centrally in
"pkgsrc/mk/wrapper/transform-gcc". But I'm not sure how to check
for the platform in that file.
Diffstat (limited to 'textproc/libxml2')
-rw-r--r-- | textproc/libxml2/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/textproc/libxml2/Makefile b/textproc/libxml2/Makefile index 37d4f1c7d00..4e5d71290e4 100644 --- a/textproc/libxml2/Makefile +++ b/textproc/libxml2/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.126 2013/11/25 23:30:23 wiz Exp $ +# $NetBSD: Makefile,v 1.127 2013/12/28 20:23:44 tron Exp $ DISTNAME= libxml2-2.9.1 PKGREVISION= 1 @@ -41,6 +41,16 @@ SUBST_FILES.cat= catalog.c xmlcatalog.c SUBST_SED.cat= -e "s,@@SGML_DEFAULT_CATALOG@@,${SGML_DEFAULT_CATALOG},g" SUBST_SED.cat+= -e "s,@@XML_DEFAULT_CATALOG@@,${XML_DEFAULT_CATALOG},g" +.if ${OPSYS} == "SunOS" +BUILDLINK_TRANSFORM+= rm:-Werror=format=2 +.include "../../mk/compiler.mk" + +. if !empty(CC_VERSION:Mgcc-*) +BUILDLINK_TRANSFORM+= rename:-mt:-pthreads +BUILDLINK_TRANSFORM+= rename:-threads:-pthreads +. endif +.endif + .include "../../archivers/xz/buildlink3.mk" .include "../../converters/libiconv/buildlink3.mk" .include "../../devel/zlib/buildlink3.mk" |