summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2019-09-10 17:36:43 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2019-09-10 17:39:12 +0200
commitb4828cad913e6218afc2647b80464aff3c7ed170 (patch)
tree1b16f2e923e6f5ae7db475bd8f3a84d0efb961e4
parentec168c395458635826b0b3c5206cbbdd1f291628 (diff)
Add option to 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: Idcebe383d938a85c594482abd3ef65015fdd4b22
-rw-r--r--src/cmake/cmake.d/01-build_options.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmake/cmake.d/01-build_options.cmake b/src/cmake/cmake.d/01-build_options.cmake
index 3b1eca7..ccd8b13 100644
--- a/src/cmake/cmake.d/01-build_options.cmake
+++ b/src/cmake/cmake.d/01-build_options.cmake
@@ -58,6 +58,7 @@ set(COMPILE_OPTIONS -Wall
-Werror=implicit-function-declaration
-ffunction-sections
-fdata-sections
+ -ffile-prefix-map=${CMAKE_SOURCE_DIR}=.
-fPIC CACHE STRING "Compilation flags")
set(COMPILE_OPTIONS_GNU -Werror=maybe-uninitialized CACHE STRING "GNU Compile specific options")