projects
/
profile
/
mobile
/
apps
/
native
/
settings.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
980b63a
)
Move -Wl flags to linker flags
author
Nikolai Merinov
<n.merinov@samsung.com>
Tue, 12 Feb 2019 13:49:58 +0000
(16:49 +0300)
committer
Nikolai Merinov
<n.merinov@samsung.com>
Tue, 12 Feb 2019 13:49:58 +0000
(16:49 +0300)
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index 45e0bddd6c02ae37de4855aabc378bb9bb6a5f83..d21627a2684d480ea80e7399b81f00399a44b616 100755
(executable)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-49,7
+49,8
@@
SET(SETTING_BACKUP_AND_RESET setting-backup-and-reset)
SET(LIB_SETTING_COMMON setting-common)
-SET(GC_SECTIONS_FLAGS "-fdata-sections -ffunction-sections -Wl,--gc-sections -Werror-implicit-function-declaration")
+SET(GC_SECTIONS_FLAGS "-fdata-sections -ffunction-sections -Werror-implicit-function-declaration")
+LINK_LIBRARIES("-Wl,--gc-sections")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${GC_SECTIONS_FLAGS}")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GC_SECTIONS_FLAGS}")