Skip to content

Commit

Permalink
Remove -rdynamic debug linker flag (#142)
Browse files Browse the repository at this point in the history
Not supported on Windows (and probably other platforms too such as Haiku), and doesn't affect the debug binary on Linux.

Co-authored-by: ROllerozxa <[email protected]>
  • Loading branch information
griffi-gh and rollerozxa authored Nov 20, 2023
1 parent 273fc47 commit 73d8ed6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ else()
endif()
endif()

set(COMMON_FLAGS_DEBUG "${COMMON_FLAGS} -O0 -ggdb -ffast-math -Werror=return-type -DDEBUG=1 -rdynamic")
set(COMMON_FLAGS_DEBUG "${COMMON_FLAGS} -O0 -ggdb -ffast-math -Werror=return-type -DDEBUG=1")
set(COMMON_FLAGS_RELEASE "${COMMON_FLAGS} -DNDEBUG=1 -s -fomit-frame-pointer -fvisibility=hidden -fdata-sections -ffunction-sections")

set(CMAKE_C_FLAGS_RELEASE "${COMMON_FLAGS_RELEASE} -O1")
Expand All @@ -186,7 +186,7 @@ set(CMAKE_CXX_FLAGS_DEBUG "${COMMON_FLAGS_DEBUG} -O0")

set(CMAKE_EXE_LINKER_FLAGS_RELEASE "-Wl,-O,-s,--gc-sections")
set(CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO "-Wl,-O,--gc-sections")
set(CMAKE_EXE_LINKER_FLAGS_DEBUG "-rdynamic")
set(CMAKE_EXE_LINKER_FLAGS_DEBUG "")

# Installation

Expand Down

0 comments on commit 73d8ed6

Please sign in to comment.