diff options
author | 2020-03-25 15:01:27 -0700 | |
---|---|---|
committer | 2020-03-25 16:44:13 -0700 | |
commit | fb0e251f30cc22779ac75bfdde71b7283606c3e6 (patch) | |
tree | 23b2ae47373a9edb48f7f58006b26491610a2a19 | |
parent | 38a2e3cb9245483f3e6e338ab721c2901c5f5ece (diff) |
Add no-canonical-prefixes to make sure paths in .d file are relative paths
Test: Ran "m out/soong/.intermediates/system/netd/bpf_progs/clatd.o/android_common/obj/system/netd/bpf_progs/clatd.o"
and verified that the output .d file did NOT contain absolute paths.
Change-Id: I2d187638eb7a6db8de057b83312cba3116985ac8
-rw-r--r-- | bpf/bpf.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bpf/bpf.go b/bpf/bpf.go index 59d1502ff..4cdfb315c 100644 --- a/bpf/bpf.go +++ b/bpf/bpf.go @@ -60,6 +60,10 @@ type bpf struct { func (bpf *bpf) GenerateAndroidBuildActions(ctx android.ModuleContext) { cflags := []string{ "-nostdlibinc", + + // Make paths in deps files relative + "-no-canonical-prefixes", + "-O2", "-isystem bionic/libc/include", "-isystem bionic/libc/kernel/uapi", |