link the infcover test statically in preparation of zlib changes
authortb <tb@openbsd.org>
Sat, 20 Jan 2024 11:29:40 +0000 (11:29 +0000)
committertb <tb@openbsd.org>
Sat, 20 Jan 2024 11:29:40 +0000 (11:29 +0000)
regress/lib/libz/Makefile

index 73e7871..6f9bc45 100644 (file)
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.4 2022/03/29 23:12:30 tb Exp $
+# $OpenBSD: Makefile,v 1.5 2024/01/20 11:29:40 tb Exp $
 
 # compile and run zlib test files from upstream
 # https://github.com/madler/zlib/tree/master/test
@@ -14,6 +14,9 @@ CPPFLAGS=     -I${.CURDIR}/../../../lib/libz
 WARNINGS=      Yes
 CLEANFILES=    foo.gz in out out.gz
 
+# infcover uses the internal inflate_table, so link it statically
+LDADD_infcover = -Wl,-Bstatic -lz -Wl,-Bdynamic
+
 REGRESS_TARGETS=       run-regress-example run-regress-infcover
 
 .for stategy in default filtered huffman rle