summaryrefslogtreecommitdiff
path: root/toolchain
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2011-06-23 12:21:21 +0300
committerPeter Korsgaard <jacmet@sunsite.dk>2011-07-25 08:31:15 +0200
commitec8eda419a54674a0d326ea25bd9c440cd059065 (patch)
tree3853d482c68d3563daf0d1209d4b9dfa59a05cdf /toolchain
parent0af4136c544aecf7950a76996fd76cc8c208d604 (diff)
toolchain: add user defined target LDFLAGS options
Allow the user to specify additional options for the target LDFLAGS. I use this to pass the -te500v2 option to the linker, when using the CodeSourcery toolchain for PowerPC. This chooses the correct CRT for e500 hard float. Otherwise I get errors like undefined reference to `_save32gpr_31' undefined reference to `_rest32gpr_31_x' at final link time. [Peter: fixup, use qstrip] Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/toolchain-common.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/toolchain/toolchain-common.in b/toolchain/toolchain-common.in
index 4a2f3795b..bbb7be627 100644
--- a/toolchain/toolchain-common.in
+++ b/toolchain/toolchain-common.in
@@ -96,3 +96,8 @@ config BR2_TARGET_OPTIMIZATION
help
Optimizations to use when building for the target host.
NOTE: gcc optimization level is defined in build options.
+
+config BR2_TARGET_LDFLAGS
+ string "Target linker options"
+ help
+ Extra options to pass to the linker when buiding for the target.