From ff747365dbbdfe72a8b6c817b021e3b40cde7a54 Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Fri, 26 Oct 2018 23:34:34 -0700 Subject: [PATCH] avoid makefile conditional --- lib/dns/tests/Makefile.in | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/dns/tests/Makefile.in b/lib/dns/tests/Makefile.in index 83ba5f07ea..75c073e400 100644 --- a/lib/dns/tests/Makefile.in +++ b/lib/dns/tests/Makefile.in @@ -32,9 +32,6 @@ LIBS = @LIBS@ @ATFLIBS@ CMOCKA_CFLAGS = @CMOCKA_CFLAGS@ CMOCKA_LIBS = @CMOCKA_LIBS@ -ifeq ($(LD_WRAP),true) -CMOCKA_MEM = -Wl,--wrap=isc__mem_put,--wrap=isc__mem_get,--wrap=isc_mem_attach,--wrap=isc_mem_detach -endif OBJS = dnstest.@O@ SRCS = acl_test.c \ @@ -236,10 +233,12 @@ time_test@EXEEXT@: time_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS} time_test.@O@ dnstest.@O@ ${DNSLIBS} \ ${ISCLIBS} ${LIBS} +WRAP = -Wl,--wrap=isc__mem_put,--wrap=isc__mem_get,--wrap=isc_mem_attach,--wrap=isc_mem_detach tkey_test@EXEEXT@: tkey_test.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS} + if test "${LD_WRAP}" = true; then wrap="${WRAP}"; fi; \ ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${CMOCKA_CFLAGS} ${LDFLAGS} -o $@ \ tkey_test.@O@ ${DNSLIBS} \ - ${ISCLIBS} ${LIBS} ${CMOCKA_LIBS} ${CMOCKA_MEM} + ${ISCLIBS} ${LIBS} ${CMOCKA_LIBS} $$wrap tsig_test@EXEEXT@: tsig_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS} ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \