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
This commit is contained in:
parent
38a2e3cb92
commit
fb0e251f30
|
@ -60,6 +60,10 @@ type bpf struct {
|
||||||
func (bpf *bpf) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
func (bpf *bpf) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
||||||
cflags := []string{
|
cflags := []string{
|
||||||
"-nostdlibinc",
|
"-nostdlibinc",
|
||||||
|
|
||||||
|
// Make paths in deps files relative
|
||||||
|
"-no-canonical-prefixes",
|
||||||
|
|
||||||
"-O2",
|
"-O2",
|
||||||
"-isystem bionic/libc/include",
|
"-isystem bionic/libc/include",
|
||||||
"-isystem bionic/libc/kernel/uapi",
|
"-isystem bionic/libc/kernel/uapi",
|
||||||
|
|
Loading…
Reference in New Issue