diff options
author | José Bollo <jose.bollo@iot.bzh> | 2019-09-10 17:20:15 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2019-09-10 17:20:15 +0200 |
commit | 45a4e69d4ef15c70d2b74ea4d0d2e4cd22e3adea (patch) | |
tree | dc82b270b1b70bcb11a3b3fd57c08bed52a652cc /CMakeLists.txt | |
parent | 87446697d54dd1eebe2f4b5528520af7a0e8f027 (diff) |
Make source files relative
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
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 75a50dcf..da601e08 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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") |