Skip to content

Commit

Permalink
CMake: add -Wl,--build-id=none for linker flag
Browse files Browse the repository at this point in the history
  • Loading branch information
HidenoriMatsubayashi committed Apr 28, 2024
1 parent 1ee4d54 commit 4b4b1d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ set(COMPILE_FLAGS "${COMPILE_FLAGS} -fno-use-cxa-atexit")
# Fix undefined reference to `__cxa_guard_acquire'
set(COMPILE_FLAGS "${COMPILE_FLAGS} -fno-threadsafe-statics")

# Disable creation of ".note.gnu.build-id" section"
set(COMPILE_FLAGS "${COMPILE_FLAGS} -Wl,--build-id=none")

if (CMAKE_BUILD_TYPE STREQUAL "Debug")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -g -O0")
endif()
Expand Down

0 comments on commit 4b4b1d8

Please sign in to comment.