From cae516fe1c503b7a42e7c9b365203d951e0b4217 Mon Sep 17 00:00:00 2001 From: Dan Nechita Date: Tue, 13 Dec 2022 13:09:45 +0200 Subject: [PATCH] cmake: Move -rdynamic flag from compiler to linker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is because rdynamic is a linker flag. And also there are reports that during build warnings(or errors) happend because of this flag being provided to compiler. Signed-off-by: Dan Nechita (cherry picked from commit ff33ac3b2f2e4f70e14ba0ace8983007825c6158) Signed-off-by: Nuno Sá --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9118446ef..b50280464 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -201,7 +201,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") add_compile_options(-mwindows) set(WIN_LINK_FLAGS "-Wl,--export-all-symbols -Wl,--subsystem,windows") else() - add_compile_options(-rdynamic) + add_link_options(-rdynamic) endif() add_library(osc ${OSC_SRC})