diff options
author | Semun Lee <sm79.lee@samsung.com> | 2016-05-27 15:54:33 +0900 |
---|---|---|
committer | Semun Lee <sm79.lee@samsung.com> | 2016-05-27 15:54:33 +0900 |
commit | 2de9503e18a3566e6ce23cf3407508341665dc0b (patch) | |
tree | 9daef97014c4ab28f5c77a23057dc0a0f701563f | |
parent | c03ad4957f334b9e42b4fab1e2fc42e12e078451 (diff) | |
download | ui-gadget-1-2de9503e18a3566e6ce23cf3407508341665dc0b.tar.gz ui-gadget-1-2de9503e18a3566e6ce23cf3407508341665dc0b.tar.bz2 ui-gadget-1-2de9503e18a3566e6ce23cf3407508341665dc0b.zip |
Add -fPIE to ug-clientsubmit/tizen/20160531.024853accepted/tizen/wearable/20160602.022756accepted/tizen/tv/20160602.022621accepted/tizen/mobile/20160602.023041accepted/tizen/ivi/20160602.022909accepted/tizen/common/20160602.140102
ug-client is used to launch ug apps. To use launchpad-loader,
we need to build ug-client to be able to be opened using dlopen.
Change-Id: Ia506c7b996d70f2ebaf706542db33d4f0e26bb92
Signed-off-by: Semun Lee <sm79.lee@samsung.com>
-rw-r--r-- | client/CMakeLists.txt | 4 | ||||
-rw-r--r-- | client/ug-client.c | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index 2a2a4c0..7f507fb 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -18,7 +18,7 @@ IF (with_wayland) ENDIF(with_wayland) FOREACH(flag ${CLIENT_PKGS_CFLAGS}) - SET(CLIENT_CFLAGS "${CLIENT_CFLAGS} ${flag}") + SET(CLIENT_CFLAGS "${CLIENT_CFLAGS} ${flag} -fPIE") ENDFOREACH(flag) SET(CLIENT_CFLAGS, "${CLIENT_CFLAGS} -DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"") @@ -29,7 +29,7 @@ SET(CLIENT_CFLAGS, "${CLIENT_CFLAGS} -DAPP_LOCALEDIR=\"${CLIENT_LOCALEDIR}\"") ADD_EXECUTABLE(${CLIENT} ${CLIENT_SRCS}) SET_TARGET_PROPERTIES(${CLIENT} PROPERTIES COMPILE_FLAGS "${CLIENT_CFLAGS}") -TARGET_LINK_LIBRARIES(${CLIENT} ${PROJECT_NAME} ${CLIENT_PKGS_LDFLAGS}) +TARGET_LINK_LIBRARIES(${CLIENT} ${PROJECT_NAME} "${CLIENT_PKGS_LDFLAGS} -pie") ADD_CUSTOM_TARGET(ug-client.edj COMMAND edje_cc -id ${CMAKE_CURRENT_SOURCE_DIR}/images diff --git a/client/ug-client.c b/client/ug-client.c index b327eab..6b12695 100644 --- a/client/ug-client.c +++ b/client/ug-client.c @@ -620,6 +620,7 @@ static int update_argument(const char *optarg, struct appdata *ad) return 0; } +__attribute__ ((visibility("default"))) int main(int argc, char *argv[]) { int opt; |