summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2020-12-09 10:21:05 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2020-12-09 10:21:05 (EST)
commitc18744dc6fcc5a0a82338ab218001d0994c79571 (patch)
tree921639364b6a71c3066c709d39f17ced40d64d10 /src
parente39a6e99302e8a780ca9867f92713e3fdfc518fc (diff)
ob-buildenv: Set -ffile-prefix-map
Diffstat (limited to 'src')
-rw-r--r--src/ob-buildenv.sh4
1 files changed, 4 insertions, 0 deletions
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
}