From 7e3eeffd04106c725d32b7617038a30b2f494f1e Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Tue, 12 May 2020 11:30:15 +0900 Subject: [PATCH] Fix wrong CMAKE grammer related to linker Change-Id: I7837f49623df630dc371464be73b7641581ccd61 Signed-off-by: Jihoon Kim --- client/CMakeLists.txt | 2 +- common/CMakeLists.txt | 2 +- manager/CMakeLists.txt | 2 +- service_lib/CMakeLists.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index 0f2063d..3bfb40a 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -72,7 +72,7 @@ ENDIF("${ARCH}" STREQUAL "arm") ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"") ADD_DEFINITIONS("-DTIZEN_DEBUG") -SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib") +SET(CMAKE_SHARED_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib") aux_source_directory(. SOURCES) ADD_LIBRARY(${fw_name} SHARED ${SOURCES}) diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index 2cfe2ac..0364d73 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -72,7 +72,7 @@ ENDIF("${ARCH}" STREQUAL "arm") ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"") ADD_DEFINITIONS("-DTIZEN_DEBUG") -SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib") +SET(CMAKE_SHARED_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib") aux_source_directory(. SOURCES) ADD_LIBRARY(${fw_name} SHARED ${SOURCES}) diff --git a/manager/CMakeLists.txt b/manager/CMakeLists.txt index dd6a757..71a2ab0 100644 --- a/manager/CMakeLists.txt +++ b/manager/CMakeLists.txt @@ -72,7 +72,7 @@ ENDIF("${ARCH}" STREQUAL "arm") ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"") ADD_DEFINITIONS("-DTIZEN_DEBUG") -SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib") +SET(CMAKE_SHARED_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib") aux_source_directory(. SOURCES) aux_source_directory(../privilege_checker PRIV_SOURCES) diff --git a/service_lib/CMakeLists.txt b/service_lib/CMakeLists.txt index 723c553..7e73b93 100644 --- a/service_lib/CMakeLists.txt +++ b/service_lib/CMakeLists.txt @@ -72,7 +72,7 @@ ENDIF("${ARCH}" STREQUAL "arm") ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"") ADD_DEFINITIONS("-DTIZEN_DEBUG") -SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib") +SET(CMAKE_SHARED_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib") aux_source_directory(. SOURCES) ADD_LIBRARY(${fw_name} SHARED ${SOURCES}) -- 2.7.4