Skip to content

Commit

Permalink
Makefile.test: Fix linking with multiple -DUNIT_TESTS
Browse files Browse the repository at this point in the history
Credits to Vlad Pătrașcu for the report!

(cherry picked from commit 1f13945)
  • Loading branch information
liviuchircu committed Jan 10, 2023
1 parent 1b76ac9 commit 319b6d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.defs
Original file line number Diff line number Diff line change
Expand Up @@ -1679,7 +1679,7 @@ endif


## Unit Testing - required extensions
ifeq (1,$(shell grep -c '^\DEFS+= -DUNIT_TESTS' Makefile.conf))
ifneq (,$(findstring UNIT_TESTS, $(DEFS)))
DEFS := $(DEFS) -DUNIT_TESTS
LIBS := $(LIBS) -ltap
test_src := $(shell find . -wholename "*/test/*\.c" | grep -v "^./modules/")
Expand Down

0 comments on commit 319b6d1

Please sign in to comment.