Skip to content

Commit

Permalink
fix(build): use LDADD instead of LDFLAGS for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dfranusic committed Oct 6, 2023
1 parent 700f808 commit 239acbe
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ check_umlua_CFLAGS = ${COMMON_INCLUDES} \
${JSON_C_CFLAGS} \
${LUA_CFLAGS} \
${ASAN_FLAGS}
check_umlua_LDFLAGS = -lcmocka \
${JSON_C_LIBS} \
${SQLITE_LIBS} \
${LUA_LIBS}
check_umlua_LDADD = -lcmocka \
${JSON_C_LIBS} \
${SQLITE_LIBS} \
${LUA_LIBS}

# umplg manager tester
check_umplg_plugin_01_la_SOURCES = test/check_umplg_plugin_01.c \
Expand Down Expand Up @@ -200,29 +200,29 @@ check_umplg_SOURCES = test/check_umplg.c \
src/utils/umink_plugin.c
check_umplg_CFLAGS = ${COMMON_INCLUDES} \
${ASAN_FLAGS}
check_umplg_LDFLAGS = -lcmocka
check_umplg_LDADD = -lcmocka

# umdaemon tester
check_umd_SOURCES = test/check_umd.c \
src/umd/umdaemon.c
check_umd_CFLAGS = ${COMMON_INCLUDES} \
${ASAN_FLAGS}
check_umd_LDFLAGS = -lcmocka
check_umd_LDADD = -lcmocka

# umdb tester
check_umdb_SOURCES = test/check_umdb.c \
src/utils/umdb.c
check_umdb_CFLAGS = ${COMMON_INCLUDES} \
${ASAN_FLAGS}
check_umdb_LDFLAGS = -lcmocka \
${SQLITE_LIBS}
check_umdb_LDADD = -lcmocka \
${SQLITE_LIBS}

# umc tester
check_umc_SOURCES = test/check_umc.c \
src/utils/umcounters.c
check_umc_CFLAGS = ${COMMON_INCLUDES} \
${ASAN_FLAGS}
check_umc_LDFLAGS = -lcmocka
check_umc_LDADD = -lcmocka

# cleanup rule
distclean-local: distclean-ax-prefix-umink-pkg-config-h
Expand Down

0 comments on commit 239acbe

Please sign in to comment.