svn commit: r449138 - in head: cad/freecad devel/libkolab graphics/qgis security/shibboleth2-sp sysutils/passwordsafe textproc/xerces-c3
Craig Leres
leres at ee.lbl.gov
Mon Sep 4 23:18:42 UTC 2017
On 09/04/17 14:22, Ian Lepore wrote:
> I ran into this at $work, I think when we first switched from gcc to
> clang for our app builds. I worked around it by adding
>
> CFLAGS+= -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS
>
> Basically, defining those symbols before #including stdint.h is what
> made SIZE_TYPE (and a few others) visible to a c++ compile.
Good suggestion. Defining __STDC_LIMIT_MACROS before the first include
in src/xercesc/util/Base64.cpp allows it to compile.
I'm not sure if this is helpful but attached is a patch to the port
Makefile that adds -D__STDC_LIMIT_MACROS to DEFS in src/Makefile.in
which seems to do the trick.
Craig
-------------- next part --------------
Index: textproc/xerces-c3/Makefile
===================================================================
--- textproc/xerces-c3/Makefile (revision 449252)
+++ textproc/xerces-c3/Makefile (working copy)
@@ -28,6 +28,10 @@
CPE_PRODUCT= xerces-c++
CPE_VENDOR= apache
+post-patch:
+ ${REINPLACE_CMD} -e "s, at DEFS@,& -D__STDC_LIMIT_MACROS," \
+ ${WRKSRC}/src/Makefile.in
+
post-install:
${LN} -s libxerces-c-${PORTVERSION:R}.so ${STAGEDIR}${PREFIX}/lib/libxerces-c.so.${PORTVERSION:R:R}
More information about the svn-ports-all
mailing list