aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/binutils
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2010-06-04 17:50:32 -0700
committerKhem Raj <raj.khem@gmail.com>2010-06-05 06:52:42 -0700
commit208ece17f76686e0faa44b2a9223fcadb692a991 (patch)
tree4bf217129b591cde27930b8995e88fe8eb1a9c31 /recipes/binutils
parent55b15cba4bb1615ff195a0c7332319de953802f2 (diff)
downloadopenembedded-208ece17f76686e0faa44b2a9223fcadb692a991.tar.gz
openembedded-208ece17f76686e0faa44b2a9223fcadb692a991.tar.bz2
openembedded-208ece17f76686e0faa44b2a9223fcadb692a991.zip
binutils-cross: Build with --enable-shared and install libiberty-pic.a
* On systems where PIC matters (e.g. MIPS, x86_64) building target binutils fails because its configured with --enable-shared but when it tried to link a shared library (libopcode.so) then it pulls in libiberty.a from the sysroot which is installed by binutils-cross earlier. This version however is a static archive and linking it with shared libraries not only does not work but is wrong too. * This patch builds binutils-cross with --enable-shared and installs the PIC version of libiberty.a into sysroot as libiberty_pic.a now when target binutils is configured with --enable-shared and searches for PIC version of libiberty.a then it finds it correctly. * Move INC_PR to binutils.inc. Also noticed that several recipes do not use binutils.inc so did not touch them Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes/binutils')
-rw-r--r--recipes/binutils/binutils-cross.inc10
-rw-r--r--recipes/binutils/binutils-cross_cvs.bb2
-rw-r--r--recipes/binutils/binutils.inc2
-rw-r--r--recipes/binutils/binutils_2.16.1.bb4
-rw-r--r--recipes/binutils/binutils_2.16.bb1
-rw-r--r--recipes/binutils/binutils_2.17.50.0.12.bb1
-rw-r--r--recipes/binutils/binutils_2.17.50.0.5.bb2
-rw-r--r--recipes/binutils/binutils_2.17.50.0.8.bb3
-rw-r--r--recipes/binutils/binutils_2.17.bb1
-rw-r--r--recipes/binutils/binutils_2.18.50.0.7.bb4
-rw-r--r--recipes/binutils/binutils_2.18.bb4
-rw-r--r--recipes/binutils/binutils_2.19.1.bb4
-rw-r--r--recipes/binutils/binutils_2.19.51.0.3.bb4
-rw-r--r--recipes/binutils/binutils_2.19.51.bb4
-rw-r--r--recipes/binutils/binutils_2.19.bb4
-rw-r--r--recipes/binutils/binutils_2.20.1.bb1
-rw-r--r--recipes/binutils/binutils_2.20.bb1
-rw-r--r--recipes/binutils/binutils_cvs.bb3
18 files changed, 22 insertions, 33 deletions
diff --git a/recipes/binutils/binutils-cross.inc b/recipes/binutils/binutils-cross.inc
index bd22c92e16..432e1a7b06 100644
--- a/recipes/binutils/binutils-cross.inc
+++ b/recipes/binutils/binutils-cross.inc
@@ -6,10 +6,14 @@ PACKAGES = ""
EXTRA_OECONF = "--with-sysroot=${STAGING_DIR_TARGET} \
--program-prefix=${TARGET_PREFIX} \
--enable-install-libbfd \
- --disable-werror"
+ --enable-shared \
+ --disable-werror \
+ "
do_install () {
oe_runmake 'DESTDIR=${D}' install
+ install -m 0644 libiberty/pic/libiberty.a \
+ ${D}${libdir}/libiberty_pic.a
# We don't really need these, so we'll remove them...
rm -rf ${D}${CROSS_DIR}/lib/ldscripts
@@ -23,7 +27,3 @@ do_install () {
rmdir ${D}${CROSS_DIR}/${libdir}64 || :
rmdir ${D}${CROSS_DIR}/${prefix} || :
}
-
-do_stage () {
- use_do_install_for_stage
-}
diff --git a/recipes/binutils/binutils-cross_cvs.bb b/recipes/binutils/binutils-cross_cvs.bb
index df1702887c..eee356d3f0 100644
--- a/recipes/binutils/binutils-cross_cvs.bb
+++ b/recipes/binutils/binutils-cross_cvs.bb
@@ -2,6 +2,6 @@ require binutils_cvs.bb
require binutils-cross.inc
FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/binutils-cvs"
-do_stage () {
+do_install () {
oe_runmake install-ld install-binutils install-gas
}
diff --git a/recipes/binutils/binutils.inc b/recipes/binutils/binutils.inc
index ee44a5d7d6..a1866f3297 100644
--- a/recipes/binutils/binutils.inc
+++ b/recipes/binutils/binutils.inc
@@ -3,6 +3,8 @@ HOMEPAGE = "http://www.gnu.org/software/binutils/"
SECTION = "devel"
LICENSE = "GPL"
+INC_PR = "r10"
+
inherit autotools gettext
PACKAGES += "${PN}-symlinks"
diff --git a/recipes/binutils/binutils_2.16.1.bb b/recipes/binutils/binutils_2.16.1.bb
index 688856c1aa..0b3ede1fc3 100644
--- a/recipes/binutils/binutils_2.16.1.bb
+++ b/recipes/binutils/binutils_2.16.1.bb
@@ -1,5 +1,3 @@
-PR = "r1"
-
CROSSTOOL_PATCH_URL = "http://www.kegel.com/crosstool/crosstool-0.43/patches/binutils-2.16.1/"
SRC_URI = \
"${GNU_MIRROR}/binutils/binutils-${PV}.tar.bz2;name=archive \
@@ -14,6 +12,8 @@ SRC_URI = \
require binutils.inc
+PR = "${INC_PR}.0"
+
SRC_URI[archive.md5sum] = "6a9d529efb285071dad10e1f3d2b2967"
SRC_URI[archive.sha256sum] = "351a6846ee179a37ed87a487971547159a7f4f92a1dec598c727f184a0de61ae"
SRC_URI[patch1.md5sum] = "b12426fd72bedf00c389a7fb458275a8"
diff --git a/recipes/binutils/binutils_2.16.bb b/recipes/binutils/binutils_2.16.bb
index c8aa2de392..35255a80a6 100644
--- a/recipes/binutils/binutils_2.16.bb
+++ b/recipes/binutils/binutils_2.16.bb
@@ -19,6 +19,7 @@ SRC_URI += "file://binutils-2.16-thumb-glue.patch"
SRC_URI += "file://binutils-2.16.1-e300c2c3.patch"
require binutils.inc
+PR = "${INC_PR}.0"
SRC_URI[md5sum] = "bcb9fabaf0eaf91bd38c4ee148658df8"
SRC_URI[sha256sum] = "5645c3371aac47cbbcc1354eab10ec32777837d7cb4ba47b94c9043612b12f36"
diff --git a/recipes/binutils/binutils_2.17.50.0.12.bb b/recipes/binutils/binutils_2.17.50.0.12.bb
index 0d2ce9f357..dc0c538526 100644
--- a/recipes/binutils/binutils_2.17.50.0.12.bb
+++ b/recipes/binutils/binutils_2.17.50.0.12.bb
@@ -1,5 +1,4 @@
require binutils.inc
-INC_PR = "r5"
PR = "${INC_PR}.1"
SRC_URI = \
diff --git a/recipes/binutils/binutils_2.17.50.0.5.bb b/recipes/binutils/binutils_2.17.50.0.5.bb
index 9a4950d798..f0eb7f6ca1 100644
--- a/recipes/binutils/binutils_2.17.50.0.5.bb
+++ b/recipes/binutils/binutils_2.17.50.0.5.bb
@@ -1,6 +1,6 @@
require binutils.inc
-PR = "r3"
+PR = "${INC_PR}.0"
SRC_URI = \
"${KERNELORG_MIRROR}/pub/linux/devel/binutils/binutils-${PV}.tar.bz2 \
diff --git a/recipes/binutils/binutils_2.17.50.0.8.bb b/recipes/binutils/binutils_2.17.50.0.8.bb
index e8a6ebe749..450fbf850d 100644
--- a/recipes/binutils/binutils_2.17.50.0.8.bb
+++ b/recipes/binutils/binutils_2.17.50.0.8.bb
@@ -1,6 +1,5 @@
require binutils.inc
-
-PR = "r2"
+PR = "${INC_PR}.0"
SRC_URI = \
"${KERNELORG_MIRROR}/pub/linux/devel/binutils/binutils-${PV}.tar.bz2 \
diff --git a/recipes/binutils/binutils_2.17.bb b/recipes/binutils/binutils_2.17.bb
index 1ffa61d121..ce317093d2 100644
--- a/recipes/binutils/binutils_2.17.bb
+++ b/recipes/binutils/binutils_2.17.bb
@@ -1,7 +1,6 @@
require binutils.inc
require binutils-avr32.inc
-INC_PR = "r7"
PR = "${INC_PR}.1"
SRC_URI = \
diff --git a/recipes/binutils/binutils_2.18.50.0.7.bb b/recipes/binutils/binutils_2.18.50.0.7.bb
index f9bb77acb8..a320b4aab7 100644
--- a/recipes/binutils/binutils_2.18.50.0.7.bb
+++ b/recipes/binutils/binutils_2.18.50.0.7.bb
@@ -1,7 +1,7 @@
-INC_PR = "r7"
-PR = "${INC_PR}.1"
require binutils.inc
+PR = "${INC_PR}.1"
+
LICENSE = "GPLv3"
SRC_URI = "\
diff --git a/recipes/binutils/binutils_2.18.bb b/recipes/binutils/binutils_2.18.bb
index aab634bd84..6ba551ebf0 100644
--- a/recipes/binutils/binutils_2.18.bb
+++ b/recipes/binutils/binutils_2.18.bb
@@ -1,7 +1,5 @@
-INC_PR = "r8"
-PR = "${INC_PR}.2"
-
require binutils.inc
+PR = "${INC_PR}.2"
LICENSE = "GPLv3"
SRC_URI = "\
diff --git a/recipes/binutils/binutils_2.19.1.bb b/recipes/binutils/binutils_2.19.1.bb
index 68ac7c5741..a4ed7805cf 100644
--- a/recipes/binutils/binutils_2.19.1.bb
+++ b/recipes/binutils/binutils_2.19.1.bb
@@ -1,7 +1,5 @@
-INC_PR = "r1"
-PR = "${INC_PR}.1"
-
require binutils.inc
+PR = "${INC_PR}.1"
LICENSE = "GPLv3"
SRC_URI = "\
diff --git a/recipes/binutils/binutils_2.19.51.0.3.bb b/recipes/binutils/binutils_2.19.51.0.3.bb
index dea4551af7..3141c2598a 100644
--- a/recipes/binutils/binutils_2.19.51.0.3.bb
+++ b/recipes/binutils/binutils_2.19.51.0.3.bb
@@ -1,7 +1,5 @@
-INC_PR = "r1"
-PR = "${INC_PR}.1"
-
require binutils.inc
+PR = "${INC_PR}.1"
LICENSE = "GPLv3"
SRC_URI = "\
diff --git a/recipes/binutils/binutils_2.19.51.bb b/recipes/binutils/binutils_2.19.51.bb
index 0ebcb33cb8..7dac777151 100644
--- a/recipes/binutils/binutils_2.19.51.bb
+++ b/recipes/binutils/binutils_2.19.51.bb
@@ -1,6 +1,6 @@
-PR = "r2"
-
require binutils.inc
+PR = "${INC_PR}.0"
+
LICENSE = "GPLv3"
SRC_URI = "\
diff --git a/recipes/binutils/binutils_2.19.bb b/recipes/binutils/binutils_2.19.bb
index 2a081dbc29..187a99fadd 100644
--- a/recipes/binutils/binutils_2.19.bb
+++ b/recipes/binutils/binutils_2.19.bb
@@ -1,7 +1,5 @@
-INC_PR = "r2"
-PR = "${INC_PR}.1"
-
require binutils.inc
+PR = "${INC_PR}.1"
LICENSE = "GPLv3"
SRC_URI = "\
diff --git a/recipes/binutils/binutils_2.20.1.bb b/recipes/binutils/binutils_2.20.1.bb
index e573c276b0..a6b564fea7 100644
--- a/recipes/binutils/binutils_2.20.1.bb
+++ b/recipes/binutils/binutils_2.20.1.bb
@@ -1,7 +1,6 @@
require binutils.inc
LICENSE = "GPLv3"
-INC_PR = "r1"
PR = "${INC_PR}.0"
SRC_URI = "\
diff --git a/recipes/binutils/binutils_2.20.bb b/recipes/binutils/binutils_2.20.bb
index 9d0438a73e..54c969c6e7 100644
--- a/recipes/binutils/binutils_2.20.bb
+++ b/recipes/binutils/binutils_2.20.bb
@@ -1,7 +1,6 @@
require binutils.inc
LICENSE = "GPLv3"
-INC_PR = "r2"
PR = "${INC_PR}.4"
SRC_URI = "\
diff --git a/recipes/binutils/binutils_cvs.bb b/recipes/binutils/binutils_cvs.bb
index e852afbdde..1e4e210c68 100644
--- a/recipes/binutils/binutils_cvs.bb
+++ b/recipes/binutils/binutils_cvs.bb
@@ -1,9 +1,8 @@
FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/binutils-cvs"
PV = "2.20+cvs${SRCDATE}"
-INC_PR = "r5"
-PR = "${INC_PR}.2"
require binutils.inc
+PR = "${INC_PR}.2"
S = "${WORKDIR}/src"
EXTRA_OEMAKE = "configure-build-libiberty"