Make source files relative 76/22376/1
authorJosé Bollo <jose.bollo@iot.bzh>
Tue, 10 Sep 2019 15:20:15 +0000 (17:20 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Tue, 10 Sep 2019 15:20:15 +0000 (17:20 +0200)
It is intended to enhance reproducibility
of produced binaries as unmeaning prefixes
are removed.

Bug-AGL: SPEC-2801

Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Change-Id: I6a7ee9fa2ce4a744f7a5ef8a3c9886cd6a9f15e9

CMakeLists.txt

index 75a50dc..da601e0 100644 (file)
@@ -70,6 +70,7 @@ add_compile_options(-Werror=implicit-function-declaration)
 add_compile_options(-ffunction-sections -fdata-sections)
 add_compile_options(-fPIC)
 add_compile_options(-g -O2)
+add_compile_options(-ffile-prefix-map=${CMAKE_CURRENT_SOURCE_DIR}=.)
 set (CMAKE_CXX_STANDARD 14)
 
 set(CMAKE_C_FLAGS_PROFILING    "-g -O2 -pg -U_FORTIFY_SOURCE")