1 From nobody Mon Sep 17 00:00:00 2001
2 Subject: [PATCH] Make linkrelax configurable
3 From: HÃ¥vard Skinnemoen <hskinnemoen@atmel.com>
6 Add a linkrelax option to the configure system which will give
7 appropriate options to the compiler, assembler and linker to enable
8 link-time optimizations.
13 extra/Configs/Config.avr32 | 4 ++++
14 2 files changed, 6 insertions(+)
16 Index: uClibc-0.9.28/Rules.mak
17 ===================================================================
18 --- uClibc-0.9.28.orig/Rules.mak 2006-02-08 17:58:53.000000000 +0100
19 +++ uClibc-0.9.28/Rules.mak 2006-02-08 17:59:07.000000000 +0100
20 @@ -233,6 +233,8 @@ endif
22 ifeq ($(strip $(TARGET_ARCH)),avr32)
23 CPU_CFLAGS-$(CONFIG_AP7000) += -mcpu=ap7000
24 + CPU_CFLAGS-$(LINKRELAX) += -masm-addr-pseudos -Wa,--pic,--linkrelax
25 + CPU_LDFLAGS-$(LINKRELAX) += --relax
28 # Keep the check_gcc from being needlessly executed
29 Index: uClibc-0.9.28/extra/Configs/Config.avr32
30 ===================================================================
31 --- uClibc-0.9.28.orig/extra/Configs/Config.avr32 2006-02-08 17:58:53.000000000 +0100
32 +++ uClibc-0.9.28/extra/Configs/Config.avr32 2006-02-08 17:59:07.000000000 +0100
33 @@ -36,3 +36,7 @@ config CONFIG_AP7000
39 + bool "Enable linker optimizations"