summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorGenie Kim <daejins.kim@samsung.com>2013-05-09 23:17:13 +0900
committerGenie Kim <daejins.kim@samsung.com>2013-05-09 23:24:54 +0900
commitc185ca2a93846452978cf9dd3ff2a35847b8b0d4 (patch)
tree62cb25de43a219332b5c5fffba8d23ab136674c7 /CMakeLists.txt
parent8ce8597f3f6a930c319cdbe81c670b24f53f581d (diff)
downloadgeocoder-tizen_2.1.tar.gz
geocoder-tizen_2.1.tar.bz2
geocoder-tizen_2.1.zip
Change-Id: I22dd75823fc979a2f807cb3b31c5ac2ec1c2645c
Diffstat (limited to 'CMakeLists.txt')
-rwxr-xr-xCMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index de90ae5..af76580 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,7 +18,7 @@ FOREACH(flag ${${fw_name}_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fvisibility=hidden -fPIC -Wall -Werror")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
IF("${ARCH}" STREQUAL "arm")
@@ -26,6 +26,7 @@ IF("${ARCH}" STREQUAL "arm")
ENDIF("${ARCH}" STREQUAL "arm")
ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
+ADD_DEFINITIONS("-DEXPORT_API=__attribute__((visibility(\"default\")))")
ADD_DEFINITIONS("-DTIZEN_DEBUG")
SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib")