diff -r 010f6f4e4dd6 -r 77df8ff1f383 scripts/crosstool.sh --- a/scripts/crosstool.sh Tue May 20 21:32:39 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}"