Link the runtests programs statically and explain why.
authorbluhm <bluhm@openbsd.org>
Thu, 6 Jul 2017 13:11:15 +0000 (13:11 +0000)
committerbluhm <bluhm@openbsd.org>
Thu, 6 Jul 2017 13:11:15 +0000 (13:11 +0000)
regress/lib/libexpat/Makefile.inc
regress/lib/libexpat/runtests/Makefile
regress/lib/libexpat/runtestspp/Makefile

index cc8d1ae..ed69374 100644 (file)
@@ -1,10 +1,10 @@
-# $OpenBSD: Makefile.inc,v 1.1.1.1 2017/06/30 14:56:08 bluhm Exp $
+# $OpenBSD: Makefile.inc,v 1.2 2017/07/06 13:11:15 bluhm Exp $
 
 EXPATDIR=      ${.CURDIR}/../../../../lib/libexpat
 .PATH:         ${EXPATDIR}/tests ${EXPATDIR}/tests/benchmark
 PROG=          ${.CURDIR:T}
-CFLAGS=                -g -I${EXPATDIR}/lib
-CPPFLAGS=      -g -I${EXPATDIR}/lib
-LDFLAGS=       -g -static
+CFLAGS=                -I${EXPATDIR}/lib
+CPPFLAGS=      -I${EXPATDIR}/lib
 LDADD=         -lexpat
 DPADD=         ${LIBEXPAT}
+DEBUG?=                -g
index bc37ec0..97c6786 100644 (file)
@@ -1,5 +1,7 @@
-# $OpenBSD: Makefile,v 1.1.1.1 2017/06/30 14:56:08 bluhm Exp $
+# $OpenBSD: Makefile,v 1.2 2017/07/06 13:11:15 bluhm Exp $
 
 SRCS=          runtests.c chardata.c memcheck.c minicheck.c
+# align_limit_to_full_utf8_characters is not exported in dynamic library
+LDFLAGS=       -static
 
 .include <bsd.regress.mk>
index 9baae15..e32f015 100644 (file)
@@ -1,5 +1,7 @@
-# $OpenBSD: Makefile,v 1.1.1.1 2017/06/30 14:56:08 bluhm Exp $
+# $OpenBSD: Makefile,v 1.2 2017/07/06 13:11:15 bluhm Exp $
 
 SRCS=          runtestspp.cpp chardata.c memcheck.c minicheck.c
+# align_limit_to_full_utf8_characters is not exported in dynamic library
+LDFLAGS=       -static
 
 .include <bsd.regress.mk>