Introduce target-specific LDFLAGS, the same way we have CFLAGS for the target.
It seems to be helping gcc somewhat into telling the correct endianness to ld that sticks with little endian even when the target is big (eg armeb-unknown-linux-uclibcgnueabi).
There's still work to do, especially finish the gcc part that is not in this commit.
/trunk/scripts/functions | 9 7 2 0 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
2 # Automatically generated make config: don't edit
3 # crosstool-NG version: 1.0.0+svn
4 # Sun May 4 12:40:41 2008
8 # Paths and misc options
12 # crosstool-NG behavior
14 # CT_OBSOLETE is not set
16 # CT_BROKEN is not set
17 # CT_DEBUG_CT is not set
22 # CT_FORCE_DOWNLOAD is not set
23 # CT_ONLY_DOWNLOAD is not set
25 # CT_PROXY_TYPE_HTTP is not set
26 # CT_PROXY_TYPE_SOCKS is not set
28 # CT_BREAK_INDENT is not set
33 # CT_FORCE_EXTRACT is not set
34 # CT_ONLY_EXTRACT is not set
47 CT_LOCAL_TARBALLS_DIR="${HOME}/src"
49 CT_PREFIX_DIR="${HOME}/x-tools/${CT_TARGET}"
50 CT_INSTALL_DIR="${CT_PREFIX_DIR}"
51 # CT_CUSTOM_PATCH is not set
58 # CT_LOG_ERROR is not set
59 # CT_LOG_WARN is not set
60 # CT_LOG_INFO is not set
62 # CT_LOG_DEBUG is not set
63 # CT_LOG_ALL is not set
64 CT_LOG_LEVEL_MAX="EXTRA"
65 # CT_LOG_SEE_TOOLS_WARN is not set
68 CT_LOG_FILE_COMPRESS=y
75 # General target options
79 # CT_ARCH_IA64 is not set
80 # CT_ARCH_MIPS is not set
81 # CT_ARCH_SH is not set
82 # CT_ARCH_x86 is not set
83 # CT_ARCH_x86_64 is not set
84 CT_ARCH_SUPPORTS_BOTH_ENDIAN=y
85 # CT_ARCH_DEFAULT_BE is not set
88 # CT_ARCH_LE is not set
91 # ARM specific options
93 # CT_ARCH_ARM_EABI is not set
96 # Target optimisations
98 CT_ARCH_ARCH="armv5te"
101 CT_ARCH_TUNE="xscale"
103 # CT_ARCH_FLOAT_HW is not set
112 # General toolchain options
117 # CT_THREADS_LINUXTHREADS is not set
118 # CT_THREADS_NONE is not set
120 CT_TARGET_VENDOR="unknown"
121 CT_TARGET_ALIAS_SED_EXPR=""
127 # CT_NATIVE is not set
129 # CT_CROSS_NATIVE is not set
130 # CT_CANADIAN is not set
131 CT_TOOLCHAIN_TYPE="cross"
139 CT_KERNEL_VERSION="2.6.24.6"
140 CT_KERNEL_LINUX_HEADERS_INSTALL=y
141 # CT_KERNEL_LINUX_HEADERS_SANITISED is not set
142 # CT_KERNEL_LINUX_HEADERS_COPY is not set
143 # CT_KERNEL_LINUX_HEADERS_USE_CUSTOM_DIR is not set
145 CT_KERNEL_VERSION_SEE_EXTRAVERSION=y
146 # CT_KERNEL_INSTALL_V_2_6_18_8 is not set
147 # CT_KERNEL_INSTALL_V_2_6_19_7 is not set
148 # CT_KERNEL_INSTALL_V_2_6_20_21 is not set
149 # CT_KERNEL_INSTALL_V_2_6_21_7 is not set
150 # CT_KERNEL_INSTALL_V_2_6_22_19 is not set
151 # CT_KERNEL_INSTALL_V_2_6_23_17 is not set
152 # CT_KERNEL_INSTALL_V_2_6_24 is not set
153 # CT_KERNEL_INSTALL_V_2_6_24_1 is not set
154 # CT_KERNEL_INSTALL_V_2_6_24_2 is not set
155 # CT_KERNEL_INSTALL_V_2_6_24_3 is not set
156 # CT_KERNEL_INSTALL_V_2_6_24_4 is not set
157 # CT_KERNEL_INSTALL_V_2_6_24_5 is not set
158 CT_KERNEL_INSTALL_V_2_6_24_6=y
159 # CT_KERNEL_INSTALL_V_2_6_25 is not set
160 # CT_KERNEL_INSTALL_V_2_6_25_1 is not set
161 CT_KERNEL_LINUX_HEADERS_INSTALL_CHECK=y
162 CT_KERNEL_LINUX_VERBOSITY_0=y
163 # CT_KERNEL_LINUX_VERBOSITY_1 is not set
164 # CT_KERNEL_LINUX_VERBOSITY_2 is not set
165 CT_KERNEL_LINUX_VERBOSE_LEVEL=0
166 # CT_KERNEL_LINUX_NEEDS_CONFIG is not set
171 CT_BINUTILS_VERSION="2.18.50.0.6"
172 # CT_BINUTILS_V_2_14 is not set
173 # CT_BINUTILS_V_2_15 is not set
174 # CT_BINUTILS_V_2_16_1 is not set
175 # CT_BINUTILS_V_2_17 is not set
176 # CT_BINUTILS_V_2_18 is not set
177 # CT_BINUTILS_V_2_18_50_0_4 is not set
178 CT_BINUTILS_V_2_18_50_0_6=y
179 CT_BINUTILS_EXTRA_CONFIG=""
180 CT_BINUTILS_FOR_TARGET=y
181 CT_BINUTILS_FOR_TARGET_IBERTY=y
182 CT_BINUTILS_FOR_TARGET_BFD=y
188 CT_CC_VERSION="4.2.3"
190 # CT_CC_V_2_95_3 is not set
191 # CT_CC_V_3_2_3 is not set
192 # CT_CC_V_3_3_6 is not set
193 # CT_CC_V_3_4_6 is not set
194 # CT_CC_V_4_0_0 is not set
195 # CT_CC_V_4_0_1 is not set
196 # CT_CC_V_4_0_2 is not set
197 # CT_CC_V_4_0_3 is not set
198 # CT_CC_V_4_0_4 is not set
199 # CT_CC_V_4_1_0 is not set
200 # CT_CC_V_4_1_1 is not set
201 # CT_CC_V_4_1_2 is not set
202 # CT_CC_V_4_2_0 is not set
203 # CT_CC_V_4_2_1 is not set
204 # CT_CC_V_4_2_2 is not set
207 CT_CC_CORE_EXTRA_CONFIG=""
208 CT_CC_EXTRA_CONFIG=""
211 CT_GMP_VERSION="4.2.2"
214 CT_MPFR_VERSION="2.3.1"
217 CT_CC_SUPPORT_FORTRAN=y
221 CT_CC_SUPPORT_OBJCXX=y
224 # Additional supported languages:
227 # CT_CC_LANG_FORTRAN is not set
228 # CT_CC_LANG_JAVA is not set
229 # CT_CC_LANG_ADA is not set
230 # CT_CC_LANG_OBJC is not set
231 # CT_CC_LANG_OBJCXX is not set
238 # CT_LIBC_UCLIBC is not set
239 CT_LIBC_VERSION="2.6.1"
241 CT_LIBC_SUPPORT_NPTL=y
242 CT_LIBC_SUPPORT_LINUXTHREADS=y
243 # CT_LIBC_V_2_3_6 is not set
244 # CT_LIBC_V_2_5 is not set
245 # CT_LIBC_V_2_5_1 is not set
246 # CT_LIBC_V_2_6 is not set
248 # CT_LIBC_V_2_7 is not set
249 CT_LIBC_GLIBC_EXTRA_CONFIG=""
250 CT_LIBC_GLIBC_EXTRA_CFLAGS=""
251 CT_LIBC_EXTRA_CC_ARGS=""
252 CT_LIBC_GLIBC_CONFIGPARMS=""
253 CT_LIBC_GLIBC_USE_PORTS=y
254 # CT_LIBC_ADDONS is not set
260 # CT_SSTRIP_ELFKICKERS is not set
261 CT_SSTRIP_BUILDROOT=y
262 CT_SSTRIP_FROM="buildroot"
267 # CT_DMALLOC is not set
271 # CT_DUMA_V_2_5_1 is not set
272 # CT_DUMA_V_2_5_8 is not set
274 CT_DUMA_VERSION="2_5_12"
277 # CT_GDB_CROSS_STATIC_GDB is not set
278 CT_GDB_CROSS_STATIC_GDBSERVER=y
279 # CT_GDB_NATIVE is not set
280 # CT_GDB_V_snapshot is not set
281 # CT_GDB_V_6_4 is not set
282 # CT_GDB_V_6_5 is not set
284 # CT_GDB_V_6_7 is not set
285 # CT_GDB_V_6_7_1 is not set
286 # CT_GDB_V_6_8 is not set
289 # CT_STRACE_V_4_5 is not set
290 # CT_STRACE_V_4_5_14 is not set
291 # CT_STRACE_V_4_5_15 is not set
293 CT_STRACE_VERSION="4.5.16"