From 356cb651783c3d89052f65d60a0e2dc108ca5238 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Wed, 27 Mar 2024 09:27:03 +0000 Subject: [PATCH] Library tests should use linker flags --- test/lib/c/Makefile | 2 +- test/lib/cpp/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/lib/c/Makefile b/test/lib/c/Makefile index f0fd2f0e..1483ac54 100644 --- a/test/lib/c/Makefile +++ b/test/lib/c/Makefile @@ -82,7 +82,7 @@ TESTS = ${SRC:.c=.test} all : ${TESTS} ${TESTS} : %.test: %.c ${R}/test/path_helper.h - $(CC) $< -o $@ -D TEST_SOURCE_DIR='"$(realpath .)"' $(LOCAL_CPPFLAGS) $(LOCAL_CFLAGS) $(LOCAL_LIBADD) + $(CC) $< -o $@ -D TEST_SOURCE_DIR='"$(realpath .)"' $(LOCAL_CPPFLAGS) $(LOCAL_CFLAGS) $(LOCAL_LIBADD) $(LOCAL_LDFLAGS) reallyclean : clean -rm -f *.orig diff --git a/test/lib/cpp/Makefile b/test/lib/cpp/Makefile index 965c0bf9..7e8a2b73 100644 --- a/test/lib/cpp/Makefile +++ b/test/lib/cpp/Makefile @@ -75,7 +75,7 @@ TESTS = ${SRC:.cpp=.test} all : ${TESTS} ${TESTS} : %.test: %.cpp ${R}/test/path_helper.h - $(CXX) -DTEST_SOURCE_DIR='"$(realpath .)"' $< -o $@ $(LOCAL_CXXFLAGS) $(LIBS) + $(CXX) -DTEST_SOURCE_DIR='"$(realpath .)"' $< -o $@ $(LOCAL_CXXFLAGS) $(LIBS) $(LOCAL_LDFLAGS) reallyclean : clean -rm -f *.orig