projects
/
platform
/
core
/
security
/
krate.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d17210
)
Move -Wl flags to linker flags
author
Nikolai Merinov
<n.merinov@samsung.com>
Fri, 8 Feb 2019 14:03:57 +0000
(17:03 +0300)
committer
Nikolai Merinov
<n.merinov@samsung.com>
Fri, 8 Feb 2019 14:03:57 +0000
(17:03 +0300)
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index e7b2b3e0da5351e50cc639cb418f403191cf5937..a338798e829fbd3fc25c7c6826053f91758da21d 100755
(executable)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-40,7
+40,8
@@
else()
SET(CXX_STD "c++11")
endif()
-SET(COMPILE_BASE_FLAGS "-g -fPIC -Werror -Wall -Wl,--as-needed -Wl,--no-whole-archive")
+SET(COMPILE_BASE_FLAGS "-g -fPIC -Werror -Wall")
+LINK_LIBRARIES("-Wl,--as-needed -Wl,--no-whole-archive")
SET(CMAKE_C_FLAGS_PROFILING "${COMPILE_BASE_FLAGS} -O0 -pg")
SET(CMAKE_CXX_FLAGS_PROFILING "${COMPILE_BASE_FLAGS} -O0 -pg -std=${CXX_STD} -fno-rtti")
SET(CMAKE_C_FLAGS_DEBUG "${COMPILE_BASE_FLAGS} -O0 -ggdb")