projects
/
carl9170fw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
carl9170 toolchain: update binutils, gcc
[carl9170fw.git]
/
extra
/
sh-elf-linux.cmake
diff --git
a/extra/sh-elf-linux.cmake
b/extra/sh-elf-linux.cmake
index 24294362c6cf3a329609ff091e268bdb93dfd0ae..713d33cf3b3612b830497d1fc9436a6945448c33 100644
(file)
--- a/
extra/sh-elf-linux.cmake
+++ b/
extra/sh-elf-linux.cmake
@@
-6,7
+6,8
@@
set_property(DIRECTORY PROPERTY TARGET_SUPPORTS_SHARED_LIBS FALSE)
set(CMAKE_FIND_ROOT_PATH ${CMAKE_SOURCE_DIR}/toolchain/inst/)
set(CMAKE_C_FLAGS "-m2 -ml -Os -ffreestanding -nostartfiles")
set(CMAKE_FIND_ROOT_PATH ${CMAKE_SOURCE_DIR}/toolchain/inst/)
set(CMAKE_C_FLAGS "-m2 -ml -Os -ffreestanding -nostartfiles")
-set(CMAKE_C_LINK_FLAGS "-Wl,-static,-EL,-x,--gc-sections")
+set(CMAKE_C_LINK_FLAGS "-Wl,-static,-EL,-x,--gc-sections,--no-warn-rwx-segments")
+set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
set(OBJCOPY ${CMAKE_SOURCE_DIR}/toolchain/inst/bin/sh-elf-objcopy)
set(CMAKE_C_COMPILER "${CMAKE_SOURCE_DIR}/toolchain/inst/bin/sh-elf-gcc")
set(OBJCOPY ${CMAKE_SOURCE_DIR}/toolchain/inst/bin/sh-elf-objcopy)
set(CMAKE_C_COMPILER "${CMAKE_SOURCE_DIR}/toolchain/inst/bin/sh-elf-gcc")