binutils: install libiberty
authorArnout Vandecappelle <arnout@mind.be>
Sat, 22 Feb 2014 22:33:30 +0000 (23:33 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 22 Feb 2014 22:56:39 +0000 (23:56 +0100)
Some packages (actually, just oprofile) need to link against libiberty.
This option just installs libiberty.a so it has no effect on the target,
therefore it's not needed to add a config option for it.

Before binutils-2.24, there was a bug in libiberty/Makefile.in that
caused libiberty to be installed regardless of the
--enable-install-libiberty option. This problem wasn't noticed before
because binutils-2.24 is not selected on any of the autobuilders: the
version can only be selected if an internal toolchain is used, and it
defaults to 2.21.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/binutils/binutils.mk

index d6828f5efde4051d398552228cf269bf38da31d3..b5a2dc7fc582335acf02debc1aa0ff76ddb95a29 100644 (file)
@@ -51,6 +51,7 @@ endif
 BINUTILS_CONF_OPT = --disable-multilib --disable-werror \
                --host=$(GNU_TARGET_NAME) \
                --target=$(GNU_TARGET_NAME) \
+               --enable-install-libiberty \
                $(BINUTILS_EXTRA_CONFIG_OPTIONS)
 
 # Install binutils after busybox to prefer full-blown utilities