summaryrefslogtreecommitdiffstats
path: root/patches/0002-ob-buildenv-Set-ffile-prefix-map.patch
blob: 0dee9005d30a3a5e60a84c7f93618e7b63d4a198 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From c18744dc6fcc5a0a82338ab218001d0994c79571 Mon Sep 17 00:00:00 2001
From: Patrick McDermott <patrick.mcdermott@libiquity.com>
Date: Wed, 9 Dec 2020 10:21:05 -0500
Subject: [PATCH] ob-buildenv: Set -ffile-prefix-map

---
 src/ob-buildenv.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/ob-buildenv.sh b/src/ob-buildenv.sh
index 6d42851..0bbfdbb 100644
--- a/src/ob-buildenv.sh
+++ b/src/ob-buildenv.sh
@@ -84,6 +84,10 @@ setup_build_flags()
 	if [ -r "${build_flags}" ]; then
 		. "${build_flags}"
 	fi
+	printf "CFLAGS='%s %s'\\n" "${CFLAGS:-}" \
+		"-ffile-prefix-map=${PWD}=."
+	printf "CXXFLAGS='%s %s'\\n" "${CXXFLAGS:-}" \
+		"-ffile-prefix-map=${PWD}=."
 
 	return 0
 }
-- 
2.11.0