2010-12-09binutils/binutils: build statically
Bryan Hundven <bryanhundven@gmail.com> [Thu, 09 Dec 2010 18:55:33 +0100] rev 2210
binutils/binutils: build statically

If the global static option is set, then build binutils statically.

Signed-off-by: "Bryan Hundven" <bryanhundven@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-12-09debug/gdb: global static forces static cross-gdb
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 09 Dec 2010 18:55:15 +0100] rev 2209
debug/gdb: global static forces static cross-gdb

If the global static option is set, then build host binutils statically.

Signed-off-by: "Bryan Hundven" <bryanhundven@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-12-09complibs: do not prompt for shared libs if static selected
Bryan Hundven <bryanhundven@gmail.com> [Thu, 09 Dec 2010 18:54:46 +0100] rev 2208
complibs: do not prompt for shared libs if static selected

If the global static toolchain option is selected, then do not
prompt the user whether to build shared companion libraries.

Signed-off-by: "Bryan Hundven" <bryanhundven@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-12-09config: add option to build statically linked toolchain
Bryan Hundven <bryanhundven@gmail.com> [Thu, 09 Dec 2010 18:54:37 +0100] rev 2207
config: add option to build statically linked toolchain

Add a config option to statically build the host tools.
Impacted tools can use that option to decide wether to build
statically or shared.

For now, no tool uses it, but they'll be added one at a time
in the next commits.

Signed-off-by: "Bryan Hundven" <bryanhundven@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-11-29complibs/cloog: fix linking with libstdc++
Bill Pringlemeir <bpringle@sympatico.ca> [Mon, 29 Nov 2010 00:50:21 +0100] rev 2206
complibs/cloog: fix linking with libstdc++

This rules out 0.15.5 and previous versions, that did not
have this option, so remove them from the list. Anyway,
they were marked 'OBSOLETE', so it's not a big loss...

[Yann E. MORIN: remove obsolete versions]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-11-29scripts: recover on partially downloaded files
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 29 Nov 2010 00:26:39 +0100] rev 2205
scripts: recover on partially downloaded files

Download to an intermediate temp file, and rename it to its final
name only of download succeeds.

This catches both a failed download, and also the case where the user
interrupts the download. Thus, the a partial download gets discarded,
and we no longer try to extract a partial tarball, which we would
previously have done.

Suggested by Thomas PETAZZONI.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-11-16scripts: call curl and wget in sequence
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 16 Nov 2010 17:49:15 +0100] rev 2204
scripts: call curl and wget in sequence

It can happen, in some circumpstances, than one can succeed where
the other would fail. Those cases involves convoluted enterprise
networks with proxies playing tricks.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-11-16scripts: remove aria2c as downloader, retain only curl and wget
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 16 Nov 2010 10:00:27 +0100] rev 2203
scripts: remove aria2c as downloader, retain only curl and wget

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-11-13cc/gcc: fix pr42289: incorrect alignment on OABI
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 13 Nov 2010 23:26:21 +0100] rev 2202
cc/gcc: fix pr42289: incorrect alignment on OABI

Fix building libffi on OABI.
Although it has been marked as 4.3-only, it is stil not fixed,
and also applies to 4.4.x

See:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42289

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-11-13cc/gcc: 4.4.5, add arm-softfloat-libgcc patch from buildroot
Bryan Hundven <bryanhundven@gmail.com> [Sat, 13 Nov 2010 14:23:36 +0100] rev 2201
cc/gcc: 4.4.5, add arm-softfloat-libgcc patch from buildroot

Reported-by: M P <buserror@gmail.com>
[Yann E. MORIN: add the patch to other 4.4.x]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-11-24kernel/linux: add latest versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 24 Nov 2010 23:10:55 +0100] rev 2200
kernel/linux: add latest versions

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-10-18complibs/CLooG: only install the libraries
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 18 Oct 2010 16:51:01 +0200] rev 2199
complibs/CLooG: only install the libraries

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-11-23scripts/xldd: better find sysroot with old gcc 1.9
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Nov 2010 21:35:28 +0100] rev 2198
scripts/xldd: better find sysroot with old gcc

Only starting with 4.4 does gcc have a -print-sysroot option.
For 4.3 or before, we have to play some tricks:
- ask gcc where libc.so is,
(we expect it in ${sysroot}/usr/lib/libc.so)
- trim /usr/lib/libc.so from the result

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from aa2305c5b2a57fbcda9a1b5bb5fb3a476ac49a13)

2010-11-23scripts/xldd: stop at first match 1.9
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Nov 2010 21:35:10 +0100] rev 2197
scripts/xldd: stop at first match

Break the library search loop as soon as a match is found.
Previously, if a library was present in different places,
then the last occurence would be returned, when the first
one would have been used at runtime.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 78d2f99d403f7092203fc7a119ec19f9a2108afa)

2010-11-23scripts/xldd: fix version string 1.9
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Nov 2010 21:34:56 +0100] rev 2196
scripts/xldd: fix version string

The version string was hard-coded.
Now, the version string follows the crosstool-NG version.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from e826624966a1672422711f779d98686e03a30b90)

2010-11-23scripts/xldd: fix typoes 1.9
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Nov 2010 21:34:50 +0100] rev 2195
scripts/xldd: fix typoes

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from dbecd99ecba51980ec9938b1313effeb45ef2ce7)

2010-11-23scripts/xldd: install only when shared libs enabled 1.9
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Nov 2010 21:35:24 +0100] rev 2194
scripts/xldd: install only when shared libs enabled

When the toolchain has no support for shared libraries, there is no
point in installing the cross-ldd helper.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 032ae3253a655d859f25a5c2bac1b72051f950b0)

2010-11-24scripts/xldd: try to handle RPATH tags
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 24 Nov 2010 21:04:55 +0100] rev 2193
scripts/xldd: try to handle RPATH tags

The RPATH tags allow a binary to tell the dynamic linker what
directories to search for libraries. The so-added paths are
searched into before any other paths.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-11-23scripts/xldd: better handle the origin of the library
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Nov 2010 21:36:01 +0100] rev 2192
scripts/xldd: better handle the origin of the library

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-11-24scripts/xldd: avoid reporting duplicates
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 24 Nov 2010 21:01:46 +0100] rev 2191
scripts/xldd: avoid reporting duplicates

Once a NEEDED dependency has been solved, do not report it
if other dependencies depend on it.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-11-23script/xldd: add debug traces
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Nov 2010 21:35:45 +0100] rev 2190
script/xldd: add debug traces

Add debug traces to help understand how xldd finds the
libraries, what directories it scans, in which order...

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-11-23scripts/xldd: parse /etc/ld.so.conf
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Nov 2010 21:35:41 +0100] rev 2189
scripts/xldd: parse /etc/ld.so.conf

Scan /etc/ld.so.conf for paths to search for libraries.
Also follow include directives in there.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-11-23scripts/xldd: better find sysroot with old gcc
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Nov 2010 21:35:28 +0100] rev 2188
scripts/xldd: better find sysroot with old gcc

Only starting with 4.4 does gcc have a -print-sysroot option.
For 4.3 or before, we have to play some tricks:
- ask gcc where libc.so is,
(we expect it in ${sysroot}/usr/lib/libc.so)
- trim /usr/lib/libc.so from the result

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-11-23scripts/xldd: report appropriate load address for 32- or 64-bit
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Nov 2010 21:35:15 +0100] rev 2187
scripts/xldd: report appropriate load address for 32- or 64-bit

For 32-bit target systems, report 4-byte (8-xdigit) wide adresses,
and for 64-bit, report 8-byte (16-xdigit) wide adresses.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-11-23scripts/xldd: stop at first match
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Nov 2010 21:35:10 +0100] rev 2186
scripts/xldd: stop at first match

Break the library search loop as soon as a match is found.
Previously, if a library was present in different places,
then the last occurence would be returned, when the first
one would have been used at runtime.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-11-23scripts/xldd: fix space-damage
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Nov 2010 21:35:01 +0100] rev 2185
scripts/xldd: fix space-damage

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-11-23scripts/xldd: fix version string
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Nov 2010 21:34:56 +0100] rev 2184
scripts/xldd: fix version string

The version string was hard-coded.
Now, the version string follows the crosstool-NG version.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-11-23scripts/xldd: fix typoes
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Nov 2010 21:34:50 +0100] rev 2183
scripts/xldd: fix typoes

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-11-23scripts/xldd: install only when shared libs enabled
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Nov 2010 21:35:24 +0100] rev 2182
scripts/xldd: install only when shared libs enabled

When the toolchain has no support for shared libraries, there is no
point in installing the cross-ldd helper.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-11-11libc/*glibc: enable selection of the oldest supported ABI
Bryan Hundven <bryanhundven@gmail.com> [Thu, 11 Nov 2010 01:11:17 +0100] rev 2181
libc/*glibc: enable selection of the oldest supported ABI

[Yann E. MORIN: split the original patch]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>