From: Sung-jae Park Date: Tue, 22 Oct 2013 07:06:14 +0000 (+0900) Subject: Ignore invalid LDFLAGS X-Git-Tag: accepted/tizen/20131022.083506^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f3421bf27b28042f031441ae3b18059084f1e974;p=platform%2Fframework%2Fweb%2Fdata-provider-slave.git Ignore invalid LDFLAGS Change-Id: Idb16a1fcd3d8b62a2c7dcb3fd2efdaf223303777 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index ad5cbba..48d9558 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,10 +67,14 @@ ADD_DEFINITIONS("-D_USE_ECORE_TIME_GET") SET(EXTRA_LDFLAGS "-ldl") FOREACH(flag ${pkg_LDFLAGS}) - SET(EXTRA_LDFLAGS "${EXTRA_LDFLAGS} ${flag}") + IF (flag STREQUAL -L) + MESSAGE("Ignore -L") + ELSE() + SET(EXTRA_LDFLAGS "${EXTRA_LDFLAGS} ${flag}") + ENDIF() ENDFOREACH(flag) -SET(CMAKE_EXE_LINKER_FLAGS) +SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${EXTRA_LDFLAGS}") # "${CMAKE_EXE_LINKER_FLAGS} -pie") ADD_EXECUTABLE("${PROJECT_NAME}.loader" @@ -84,7 +88,7 @@ ADD_EXECUTABLE("${PROJECT_NAME}.loader" src/client.c src/critical_log.c ) -TARGET_LINK_LIBRARIES(${PROJECT_NAME}.loader "${EXTRA_LDFLAGS}") +TARGET_LINK_LIBRARIES("${PROJECT_NAME}.loader" "${EXTRA_LDFLAGS}") ADD_EXECUTABLE(${ICON_PROVIDER} icon_src/main.c