# HG changeset patch # User "Yann E. MORIN" # Date 1211668687 0 # Node ID 77df8ff1f38395b1db127853de23cb928264d328 # Parent 010a5f732a6f31b891d2630454b72f7c827a9c4f Use the arch-specific target LDFLAGS into the final target LDFLAGS. Fix a help entry in the CFLAGS_for_target config entry. /trunk/scripts/crosstool.sh | 4 3 1 0 +++- /trunk/config/target.in | 2 1 1 0 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff -r 010a5f732a6f -r 77df8ff1f383 config/target.in --- a/config/target.in Sat May 24 22:10:51 2008 +0000 +++ b/config/target.in Sat May 24 22:38:07 2008 +0000 @@ -244,7 +244,7 @@ Used to add specific options when compiling libraries of the toolchain, that will run on the target (eg. libc.so). - Note that the options above for CPU, tune, arch and FPU will be + Note that the options above for ARCH, ABI, CPU, TUNE and FPU will be automaticaly used. You don't need to specify them here. Leave blank if you don't know better. diff -r 010a5f732a6f -r 77df8ff1f383 scripts/crosstool.sh --- a/scripts/crosstool.sh Sat May 24 22:10:51 2008 +0000 +++ b/scripts/crosstool.sh Sat May 24 22:38:07 2008 +0000 @@ -72,8 +72,10 @@ . "${CT_TOP_DIR}/.config" # Second kludge: merge user-supplied target CFLAGS with architecture-provided -# target CFLAGS +# target CFLAGS. Do the same for LDFLAGS in case it happens in the future. +# Put user-supplied flags at the end, so that they take precedence. CT_TARGET_CFLAGS="${CT_ARCH_TARGET_CFLAGS} ${CT_TARGET_CFLAGS}" +CT_TARGET_LDFLAGS="${CT_ARCH_TARGET_LDFLAGS} ${CT_TARGET_LDFLAGS}" # Now, build up the variables from the user-configured options. CT_KERNEL_FILE="${CT_KERNEL}-${CT_KERNEL_VERSION}"