Commit 2c74df96 authored by Andrew Hsieh's avatar Andrew Hsieh
Browse files

Do not resolve to real/absolute link in GCC 4.6 / 4.7

Add -no-canonical-prefixes to both compiler and linker in GCC 4.6/4.7
to not resolve to absolute path (ie. the GCC 4.4.3 default behavior),
otherwise it may fail in distributed build system because the real
path may differ from machine to machine.

Change-Id: I1801bbcfc738e5d955b1ee40a5f1cd81da091ad4
parent 276caba2
......@@ -29,9 +29,10 @@ TARGET_CFLAGS := \
-funwind-tables \
-fstack-protector \
-D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ \
-D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__
-D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ \
-no-canonical-prefixes
TARGET_LDFLAGS :=
TARGET_LDFLAGS := -no-canonical-prefixes
TARGET_C_INCLUDES := \
$(SYSROOT)/usr/include
......
......@@ -29,9 +29,10 @@ TARGET_CFLAGS := \
-funwind-tables \
-fstack-protector \
-D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ \
-D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__
-D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ \
-no-canonical-prefixes
TARGET_LDFLAGS :=
TARGET_LDFLAGS := -no-canonical-prefixes
TARGET_C_INCLUDES := \
$(SYSROOT)/usr/include
......
......@@ -53,10 +53,12 @@ TARGET_CFLAGS := \
-funwind-tables \
-fstack-protector \
-D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ \
-D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__
-D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ \
-no-canonical-prefixes
TARGET_LDFLAGS := \
-gcc-toolchain $(call host-path,$(TOOLCHAIN_PREBUILT_ROOT))
-gcc-toolchain $(call host-path,$(TOOLCHAIN_PREBUILT_ROOT)) \
-no-canonical-prefixes
TARGET_C_INCLUDES := \
$(SYSROOT)/usr/include
......
......@@ -34,8 +34,9 @@ TARGET_CFLAGS := \
-fgcse-after-reload \
-frerun-cse-after-loop \
-frename-registers \
-no-canonical-prefixes
TARGET_LDFLAGS :=
TARGET_LDFLAGS := -no-canonical-prefixes
TARGET_C_INCLUDES := \
$(SYSROOT)/usr/include
......
......@@ -34,8 +34,9 @@ TARGET_CFLAGS := \
-fgcse-after-reload \
-frerun-cse-after-loop \
-frename-registers \
-no-canonical-prefixes
TARGET_LDFLAGS :=
TARGET_LDFLAGS := -no-canonical-prefixes
TARGET_C_INCLUDES := \
$(SYSROOT)/usr/include
......
......@@ -56,11 +56,13 @@ TARGET_CFLAGS := \
-finline-functions \
-ffunction-sections \
-funwind-tables \
-fmessage-length=0
-fmessage-length=0 \
-no-canonical-prefixes
TARGET_LDFLAGS := \
-gcc-toolchain $(call host-path,$(TOOLCHAIN_PREBUILT_ROOT)) \
-target $(LLVM_TRIPLE)
-target $(LLVM_TRIPLE) \
-no-canonical-prefixes
TARGET_C_INCLUDES := \
$(SYSROOT)/usr/include
......
......@@ -28,13 +28,14 @@ TOOLCHAIN_PREFIX := $(TOOLCHAIN_PREBUILT_ROOT)/bin/i686-linux-android-
TARGET_CFLAGS := \
-ffunction-sections \
-funwind-tables
-funwind-tables \
-no-canonical-prefixes
TARGET_C_INCLUDES := \
$(SYSROOT)/usr/include
# Add and LDFLAGS for the target here
# TARGET_LDFLAGS :=
TARGET_LDFLAGS := -no-canonical-prefixes
TARGET_CFLAGS += -fstack-protector
......
......@@ -28,13 +28,14 @@ TOOLCHAIN_PREFIX := $(TOOLCHAIN_PREBUILT_ROOT)/bin/i686-linux-android-
TARGET_CFLAGS := \
-ffunction-sections \
-funwind-tables
-funwind-tables \
-no-canonical-prefixes
TARGET_C_INCLUDES := \
$(SYSROOT)/usr/include
# Add and LDFLAGS for the target here
# TARGET_LDFLAGS :=
TARGET_LDFLAGS := -no-canonical-prefixes
TARGET_CFLAGS += -fstack-protector
......
......@@ -50,7 +50,8 @@ TARGET_CFLAGS := \
-ffunction-sections \
-funwind-tables \
-fstack-protector \
-fPIC
-fPIC \
-no-canonical-prefixes
TARGET_C_INCLUDES := \
$(SYSROOT)/usr/include
......@@ -58,7 +59,8 @@ TARGET_C_INCLUDES := \
# Add and LDFLAGS for the target here
TARGET_LDFLAGS := \
-gcc-toolchain $(call host-path,$(TOOLCHAIN_PREBUILT_ROOT)) \
-target $(LLVM_TRIPLE)
-target $(LLVM_TRIPLE) \
-no-canonical-prefixes
TARGET_x86_release_CFLAGS := -O2 \
-g \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment