diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2014-05-09 14:13:13 +0800 |
---|---|---|
committer | Andrew Hsieh <andrewhsieh@google.com> | 2014-05-09 22:12:49 +0800 |
commit | 48f239c94faca140427afc9aa06cf356b1b6b0de (patch) | |
tree | 562563adb0d1935d7d7b0e2395b4402fc73970d0 /core/combo/TARGET_linux-arm64.mk | |
parent | afe444a564ed72cdda792822a0c9dab57a8c9172 (diff) | |
download | build-48f239c94faca140427afc9aa06cf356b1b6b0de.zip build-48f239c94faca140427afc9aa06cf356b1b6b0de.tar.gz build-48f239c94faca140427afc9aa06cf356b1b6b0de.tar.bz2 |
Disable canonical prefixes of system headers
GCC know a few pre-defined paths (relative to its location) to
search for headers, libraries, program, etc. By default GCC prefixes
its own path(argv[0]) and calls realpath() which result in absolute
path with all symlink, . and .. removed.
It's usually good to have canonicalised paths, but absolute paths
in *.d file can cause unnecessary relinking when stale entries
in ccache cache hit
Add -no-canonical-prefixes (gcc>=4.6) and
-fno-canonical-system-headers (gcc>4.6) to disable realpath() on
prefixed paths
Change-Id: I58d739e61fb013015fb05a9c98b2132b307f915a
Diffstat (limited to 'core/combo/TARGET_linux-arm64.mk')
-rw-r--r-- | core/combo/TARGET_linux-arm64.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/combo/TARGET_linux-arm64.mk b/core/combo/TARGET_linux-arm64.mk index 5e50f9f..6515eb5 100644 --- a/core/combo/TARGET_linux-arm64.mk +++ b/core/combo/TARGET_linux-arm64.mk @@ -87,6 +87,8 @@ TARGET_GLOBAL_CFLAGS += \ -Werror=format-security \ -D_FORTIFY_SOURCE=2 \ -fno-short-enums \ + -no-canonical-prefixes \ + -fno-canonical-system-headers \ $(arch_variant_cflags) \ -include $(android_config_h) \ -I $(dir $(android_config_h)) |