cxx: add build-id as a link flag
This commit is contained in:
parent
4de013d8e3
commit
c767d8f047
@ -16,6 +16,7 @@ set (CMAKE_C_FLAGS_DEBUG "")
|
|||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
include (compile_flag)
|
include (compile_flag)
|
||||||
|
include (link_flag)
|
||||||
include (test_restrict)
|
include (test_restrict)
|
||||||
|
|
||||||
|
|
||||||
@ -79,6 +80,9 @@ append_compile_flag("-fvisibility=hidden")
|
|||||||
append_compile_flag("-fvisibility-inlines-hidden")
|
append_compile_flag("-fvisibility-inlines-hidden")
|
||||||
append_compile_flag("-fPIC")
|
append_compile_flag("-fPIC")
|
||||||
|
|
||||||
|
# We want a build-id so that we can attribute minidumps
|
||||||
|
append_link_flag("-Wl,--build-id")
|
||||||
|
|
||||||
append_compile_flag("-D__STDC_FORMAT_MACROS")
|
append_compile_flag("-D__STDC_FORMAT_MACROS")
|
||||||
|
|
||||||
add_definitions("-D_FILE_OFFSET_BITS=64")
|
add_definitions("-D_FILE_OFFSET_BITS=64")
|
||||||
|
Loading…
Reference in New Issue
Block a user