Skip to content

Commit d2314f8

Browse files
committed
Fix automate linker variable
Use the correct variable to specify the cmocka library dependency on tests. Previously, using the linker flags variable, the order of the cmocka library expands in bad position.
1 parent e78abb2 commit d2314f8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/media/Makefile.am

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,5 @@ test_unit_CFLAGS += -D__FAVOR_BSD -D_BSD_SOURCE -D_DEFAULT_SOURCE # Get BSDish d
3232
test_unit_CFLAGS += -DDRIFTNET_VERSION=\"$(VERSION)\"
3333
test_unit_CFLAGS += -DDRIFTNET_PROGNAME=\"$(PACKAGE)\"
3434
#test_unit_CFLAGS += -DNO_HTTP_DISPLAY -DNO_DISPLAY_WINDOW
35-
test_unit_LDFLAGS = -lcmocka
36-
test_unit_LDADD = libmedia.a ../common/libcommon.a
35+
test_unit_LDADD = libmedia.a ../common/libcommon.a -lcmocka
3736
endif

0 commit comments

Comments
 (0)