From c767d8f047e897a17e065c5769685a7178ca7a31 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 4 Nov 2019 11:17:09 +1100 Subject: [PATCH] cxx: add build-id as a link flag --- nc_cxx.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nc_cxx.cmake b/nc_cxx.cmake index 1c270f1..a8d87ec 100644 --- a/nc_cxx.cmake +++ b/nc_cxx.cmake @@ -16,6 +16,7 @@ set (CMAKE_C_FLAGS_DEBUG "") ############################################################################### include (compile_flag) +include (link_flag) include (test_restrict) @@ -79,6 +80,9 @@ append_compile_flag("-fvisibility=hidden") append_compile_flag("-fvisibility-inlines-hidden") 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") add_definitions("-D_FILE_OFFSET_BITS=64")