Skip to content

Commit

Permalink
cmake: Move -rdynamic flag from compiler to linker
Browse files Browse the repository at this point in the history
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 <[email protected]>
(cherry picked from commit ff33ac3)
Signed-off-by: Nuno Sá <[email protected]>
  • Loading branch information
dNechita committed Feb 14, 2023
1 parent 3db083c commit 7e55122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 7e55122

Please sign in to comment.