diff options
| author | Patrick 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) |
| commit | c18744dc6fcc5a0a82338ab218001d0994c79571 (patch) | |
| tree | 921639364b6a71c3066c709d39f17ced40d64d10 | |
| parent | e39a6e99302e8a780ca9867f92713e3fdfc518fc (diff) | |
ob-buildenv: Set -ffile-prefix-map
| -rw-r--r-- | NEWS | 2 | ||||
| -rw-r--r-- | src/ob-buildenv.sh | 4 |
2 files changed, 6 insertions, 0 deletions
@@ -8,6 +8,8 @@ Utilities: * ob-buildopk now sets the modification time of the "control.tar.gz" and "data.tar.gz" files after compression rather than before, because BusyBox's gzip doesn't preserve modification times. + * ob-buildenv now adds "-ffile-prefix-map" options to CFLAGS and + CXXFLAGS. opkbuild version 4.2.1 ---------------------- 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 } |
