From 5cb2e6ca9606fc681ebde28b4b82d5b57909ee51 Mon Sep 17 00:00:00 2001 From: tb Date: Sat, 20 Jan 2024 11:29:40 +0000 Subject: [PATCH] link the infcover test statically in preparation of zlib changes --- regress/lib/libz/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/regress/lib/libz/Makefile b/regress/lib/libz/Makefile index 73e7871294d..6f9bc4564bf 100644 --- a/regress/lib/libz/Makefile +++ b/regress/lib/libz/Makefile @@ -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 -- 2.20.1