From bbc5d742913079f573526c20df9169c926bb8035 Mon Sep 17 00:00:00 2001 From: Christian Lamparter Date: Sun, 5 Nov 2017 16:42:39 +0100 Subject: [PATCH] =?utf8?q?carl9170:=20fix=20spurious=20"error:=20unrecogni?= =?utf8?q?zed=20command=20line=20option=20=E2=80=98-rdynamic=E2=80=99"?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This error came from cmake's module Linux-GNU-C.cmake that sets the linker options. However, this is an embedded target and it does not support dynamic linking. Until this is fixed, let's just overwrite the line. Signed-off-by: Christian Lamparter --- extra/sh-elf-linux.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/extra/sh-elf-linux.cmake b/extra/sh-elf-linux.cmake index 2429436..3fdf98c 100644 --- a/extra/sh-elf-linux.cmake +++ b/extra/sh-elf-linux.cmake @@ -7,6 +7,7 @@ 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_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") -- 2.31.1