summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak6
1 files changed, 6 insertions, 0 deletions
diff --git a/Rules.mak b/Rules.mak
index 5be6bbed4..33bc7ab99 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -317,6 +317,12 @@ ifeq ($(TARGET_ARCH),frv)
UCLIBC_LDSO=ld.so.1
endif
+ifeq ($(strip $(TARGET_ARCH)),avr32)
+ CPU_CFLAGS-$(CONFIG_AVR32_AP7) += -march=ap
+ CPU_CFLAGS-$(CONFIG_LINKRELAX) += -mrelax
+ CPU_LDFLAGS-$(CONFIG_LINKRELAX) += --relax
+endif
+
# Keep the check_gcc from being needlessly executed
ifndef PIEFLAG
ifneq ($(UCLIBC_BUILD_PIE),y)