summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSemun Lee <sm79.lee@samsung.com>2016-05-27 06:54:33 (GMT)
committerSemun Lee <sm79.lee@samsung.com>2016-05-27 06:54:33 (GMT)
commit2de9503e18a3566e6ce23cf3407508341665dc0b (patch)
tree9daef97014c4ab28f5c77a23057dc0a0f701563f
parentc03ad4957f334b9e42b4fab1e2fc42e12e078451 (diff)
downloadui-gadget-1-accepted/tizen/wearable/20160602.022756.zip
ui-gadget-1-accepted/tizen/wearable/20160602.022756.tar.gz
ui-gadget-1-accepted/tizen/wearable/20160602.022756.tar.bz2
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.txt4
-rw-r--r--client/ug-client.c1
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;