mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-24 09:14:02 +08:00
Library tests should use linker flags
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user