Source-Changes-HG archive

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

[src/trunk]: src/external/mit/expat/lib/libexpat Unless we add --sysroot, the...



details:   https://anonhg.NetBSD.org/src/rev/64af119646c0
branches:  trunk
changeset: 965617:64af119646c0
user:      maya <maya%NetBSD.org@localhost>
date:      Tue Sep 24 19:19:49 2019 +0000

description:
Unless we add --sysroot, the netbsd src tree headers won't be used.
Do so, so we don't rely on the build machine to have <endian.h> for
this macro check.

Using ${CPPFLAGS} rather than my own encoding of --sysroot, since it
already includes it.

Tested by agc, thanks.

diffstat:

 external/mit/expat/lib/libexpat/Makefile |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r fe08fc33dba7 -r 64af119646c0 external/mit/expat/lib/libexpat/Makefile
--- a/external/mit/expat/lib/libexpat/Makefile  Tue Sep 24 17:23:06 2019 +0000
+++ b/external/mit/expat/lib/libexpat/Makefile  Tue Sep 24 19:19:49 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.3 2019/09/23 17:20:41 maya Exp $
+#      $NetBSD: Makefile,v 1.4 2019/09/24 19:19:49 maya Exp $
 
 .include <bsd.init.mk>
 
@@ -36,7 +36,7 @@
 
 expat.pc: expat_config.h expat.pc.in
        @(V=$$( (echo '#include <expat_config.h>'; echo PACKAGE_VERSION) | \
-           ${CC} -E -I${.CURDIR} - | tail -1 | tr -d '"') && \
+           ${CC} ${CPPFLAGS} -E -I${.CURDIR} - | tail -1 | tr -d '"') && \
            ${TOOL_SED} -e s/@VERSION@/$$V/ < ${.CURDIR}/expat.pc.in \
            > ${.TARGET})
 



Home | Main Index | Thread Index | Old Index