X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2FCMakeLists.txt;h=d253d388259ed0cc349d485d4479b2d77e29fd9d;hb=3dbe2d3eeeec9c1d3cf82f41378b306499b9d41b;hp=11d9542bec2f19a41e1c66734e37c80cadba5fa5;hpb=b56b68b16b307df81eddf9705ead59198d75b7bd;p=src%2Fapp-framework-binder.git diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 11d9542b..d253d388 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -109,11 +109,11 @@ ADD_EXECUTABLE(afb-daemon main.c) TARGET_LINK_LIBRARIES(afb-daemon afb-lib ${link_libraries} - ${libsystemd_LIBRARIES} - ${libmicrohttpd_LIBRARIES} - ${uuid_LIBRARIES} - ${openssl_LIBRARIES} - ${cynara_LIBRARIES} + ${libsystemd_LDFLAGS} + ${libmicrohttpd_LDFLAGS} + ${uuid_LDFLAGS} + ${openssl_LDFLAGS} + ${cynara_LDFLAGS} -lmagic -ldl -lrt @@ -129,7 +129,7 @@ SET_TARGET_PROPERTIES(afbwsc PROPERTIES VERSION ${LIBAFBWSC_VERSION} SOVERSION ${LIBAFBWSC_SOVERSION}) TARGET_LINK_LIBRARIES(afbwsc - ${libsystemd_LIBRARIES} + ${libsystemd_LDFLAGS} -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/export-afbwsc.map -Wl,--as-needed -Wl,--gc-sections @@ -144,7 +144,7 @@ ADD_EXECUTABLE(afb-client-demo afb-client-demo.c) TARGET_LINK_LIBRARIES(afb-client-demo afbwsc ${link_libraries} - ${libsystemd_LIBRARIES} + ${libsystemd_LDFLAGS} ) INSTALL(TARGETS afb-client-demo RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})