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:41:48 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
78 # CT_ARCH_ARM is not set
79 # CT_ARCH_IA64 is not set
80 # CT_ARCH_MIPS is not set
81 # CT_ARCH_SH is not set
83 # CT_ARCH_x86_64 is not set
84 # CT_ARCH_SUPPORTS_BOTH_ENDIAN is not set
85 # CT_ARCH_DEFAULT_BE is not set
86 # CT_ARCH_DEFAULT_LE is not set
89 # Target optimisations
97 # CT_ARCH_FLOAT_SW is not set
105 # General toolchain options
110 # CT_THREADS_LINUXTHREADS is not set
111 # CT_THREADS_NONE is not set
113 CT_TARGET_VENDOR="nptl"
114 CT_TARGET_ALIAS_SED_EXPR=""
120 # CT_NATIVE is not set
122 # CT_CROSS_NATIVE is not set
123 # CT_CANADIAN is not set
124 CT_TOOLCHAIN_TYPE="cross"
132 CT_KERNEL_VERSION="2.6.25.1"
133 CT_KERNEL_LINUX_HEADERS_INSTALL=y
134 # CT_KERNEL_LINUX_HEADERS_SANITISED is not set
135 # CT_KERNEL_LINUX_HEADERS_COPY is not set
136 # CT_KERNEL_LINUX_HEADERS_USE_CUSTOM_DIR is not set
138 CT_KERNEL_VERSION_SEE_EXTRAVERSION=y
139 # CT_KERNEL_INSTALL_V_2_6_18_8 is not set
140 # CT_KERNEL_INSTALL_V_2_6_19_7 is not set
141 # CT_KERNEL_INSTALL_V_2_6_20_21 is not set
142 # CT_KERNEL_INSTALL_V_2_6_21_7 is not set
143 # CT_KERNEL_INSTALL_V_2_6_22_19 is not set
144 # CT_KERNEL_INSTALL_V_2_6_23_17 is not set
145 # CT_KERNEL_INSTALL_V_2_6_24 is not set
146 # CT_KERNEL_INSTALL_V_2_6_24_1 is not set
147 # CT_KERNEL_INSTALL_V_2_6_24_2 is not set
148 # CT_KERNEL_INSTALL_V_2_6_24_3 is not set
149 # CT_KERNEL_INSTALL_V_2_6_24_4 is not set
150 # CT_KERNEL_INSTALL_V_2_6_24_5 is not set
151 # CT_KERNEL_INSTALL_V_2_6_24_6 is not set
152 # CT_KERNEL_INSTALL_V_2_6_25 is not set
153 CT_KERNEL_INSTALL_V_2_6_25_1=y
154 CT_KERNEL_LINUX_HEADERS_INSTALL_CHECK=y
155 CT_KERNEL_LINUX_VERBOSITY_0=y
156 # CT_KERNEL_LINUX_VERBOSITY_1 is not set
157 # CT_KERNEL_LINUX_VERBOSITY_2 is not set
158 CT_KERNEL_LINUX_VERBOSE_LEVEL=0
159 # CT_KERNEL_LINUX_NEEDS_CONFIG is not set
164 CT_BINUTILS_VERSION="2.18"
165 # CT_BINUTILS_V_2_14 is not set
166 # CT_BINUTILS_V_2_15 is not set
167 # CT_BINUTILS_V_2_16_1 is not set
168 # CT_BINUTILS_V_2_17 is not set
170 # CT_BINUTILS_V_2_18_50_0_4 is not set
171 # CT_BINUTILS_V_2_18_50_0_6 is not set
172 CT_BINUTILS_EXTRA_CONFIG=""
173 CT_BINUTILS_FOR_TARGET=y
174 CT_BINUTILS_FOR_TARGET_IBERTY=y
175 CT_BINUTILS_FOR_TARGET_BFD=y
181 CT_CC_VERSION="4.2.3"
183 # CT_CC_V_2_95_3 is not set
184 # CT_CC_V_3_2_3 is not set
185 # CT_CC_V_3_3_6 is not set
186 # CT_CC_V_3_4_6 is not set
187 # CT_CC_V_4_0_0 is not set
188 # CT_CC_V_4_0_1 is not set
189 # CT_CC_V_4_0_2 is not set
190 # CT_CC_V_4_0_3 is not set
191 # CT_CC_V_4_0_4 is not set
192 # CT_CC_V_4_1_0 is not set
193 # CT_CC_V_4_1_1 is not set
194 # CT_CC_V_4_1_2 is not set
195 # CT_CC_V_4_2_0 is not set
196 # CT_CC_V_4_2_1 is not set
197 # CT_CC_V_4_2_2 is not set
200 CT_CC_CORE_EXTRA_CONFIG=""
201 CT_CC_EXTRA_CONFIG=""
204 CT_GMP_VERSION="4.2.2"
205 # CT_GMP_CHECK is not set
207 CT_MPFR_VERSION="2.3.1"
208 # CT_MPFR_CHECK is not set
210 CT_CC_SUPPORT_FORTRAN=y
214 CT_CC_SUPPORT_OBJCXX=y
217 # Additional supported languages:
222 # CT_CC_LANG_ADA is not set
223 # CT_CC_LANG_OBJC is not set
224 # CT_CC_LANG_OBJCXX is not set
231 # CT_LIBC_UCLIBC is not set
232 CT_LIBC_VERSION="2.6.1"
234 CT_LIBC_SUPPORT_NPTL=y
235 CT_LIBC_SUPPORT_LINUXTHREADS=y
236 # CT_LIBC_V_2_3_6 is not set
237 # CT_LIBC_V_2_5 is not set
238 # CT_LIBC_V_2_5_1 is not set
239 # CT_LIBC_V_2_6 is not set
241 # CT_LIBC_V_2_7 is not set
242 CT_LIBC_GLIBC_EXTRA_CONFIG=""
243 CT_LIBC_GLIBC_EXTRA_CFLAGS=""
244 CT_LIBC_EXTRA_CC_ARGS=""
245 CT_LIBC_GLIBC_CONFIGPARMS=""
246 # CT_LIBC_GLIBC_USE_PORTS is not set
247 # CT_LIBC_ADDONS is not set
253 # CT_SSTRIP_ELFKICKERS is not set
254 CT_SSTRIP_BUILDROOT=y
255 CT_SSTRIP_FROM="buildroot"
260 # CT_DMALLOC is not set
264 # CT_DUMA_V_2_5_1 is not set
265 # CT_DUMA_V_2_5_8 is not set
267 CT_DUMA_VERSION="2_5_12"
270 # CT_GDB_CROSS_STATIC_GDB is not set
271 CT_GDB_CROSS_STATIC_GDBSERVER=y
272 # CT_GDB_NATIVE is not set
273 # CT_GDB_V_snapshot is not set
274 # CT_GDB_V_6_4 is not set
275 # CT_GDB_V_6_5 is not set
277 # CT_GDB_V_6_7 is not set
278 # CT_GDB_V_6_7_1 is not set
279 # CT_GDB_V_6_8 is not set
282 # CT_STRACE_V_4_5 is not set
283 # CT_STRACE_V_4_5_14 is not set
284 # CT_STRACE_V_4_5_15 is not set
286 CT_STRACE_VERSION="4.5.16"