diff --git a/src/Makefile.am b/src/Makefile.am index 66a769b..51870a3 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -14,7 +14,7 @@ AM_CFLAGS = ${my_CFLAGS} \ -ffunction-sections \ -fdata-sections -AM_LDFLAGS = ${MBTOOLS_LIBS} \ +AM_LDFLAGS = \ -Wl,--gc-sections \ -Wl,--as-needed @@ -28,5 +28,9 @@ mbcollect_SOURCES = \ output.c \ collect.c +mbcollect_LDADD = ${MBTOOLS_LIBS} + mbrecorder_SOURCES = \ recorder.c + +mbrecorder_LDADD = ${MBTOOLS_LIBS} diff --git a/tests/Makefile.am b/tests/Makefile.am index eba139e..22db36c 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -9,7 +9,7 @@ AM_CFLAGS = ${my_CFLAGS} \ -ffunction-sections \ -fdata-sections -AM_LDFLAGS = ${MBTOOLS_LIBS} \ +AM_LDFLAGS = \ -Wl,--gc-sections \ -Wl,--as-needed @@ -20,3 +20,5 @@ noinst_PROGRAMS = \ unit_test_server_SOURCES = unit-test-server.c unit_test_client_SOURCES = unit-test-client.c +unit_test_server_LDADD = ${MBTOOLS_LIBS} +unit_test_client_LDADD = ${MBTOOLS_LIBS}