From b4828cad913e6218afc2647b80464aff3c7ed170 Mon Sep 17 00:00:00 2001
From: José Bollo <jose.bollo@iot.bzh>
Date: Tue, 10 Sep 2019 17:36:43 +0200
Subject: Add option to make source files relative
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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
---
 src/cmake/cmake.d/01-build_options.cmake | 1 +
 1 file changed, 1 insertion(+)

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")
-- 
cgit