summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolai Merinov <n.merinov@samsung.com>2019-02-05 10:11:33 (GMT)
committerNikolai Merinov <n.merinov@samsung.com>2019-02-05 10:11:33 (GMT)
commite350c5727d44eee9d51017d94f3901c5d581f709 (patch)
tree8ffa9279a2e850662b62bc9e73e40df035a2bffa
parentbb085d772e01ebcb3feef8dbe67e310e077de986 (diff)
downloadgeofence-dbus-sandbox/nmerinov/llvm.zip
geofence-dbus-sandbox/nmerinov/llvm.tar.gz
geofence-dbus-sandbox/nmerinov/llvm.tar.bz2
Move -Wl flag to linker flagssandbox/nmerinov/llvm
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1d4b4dd..85a1c63 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -13,8 +13,8 @@ FOREACH(flag ${pkgs_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
-SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -Wl,-zdefs -fvisibility=hidden ")
-SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed")
+SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fvisibility=hidden ")
+SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,-zdefs")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror -Wextra -fvisibility=hidden -fPIC")