binutils: build shared, fixed bfd.h for 3rd party sw.

This commit is contained in:
Juan RP 2012-06-12 14:42:49 +02:00
parent 2b92257eb8
commit 81bce82f79
2 changed files with 8 additions and 3 deletions

View File

@ -9,5 +9,6 @@ long_desc="${long_desc}
do_install() {
vmove usr/include usr
vmove "usr/lib/*.a" usr/lib
vmove "usr/lib/*.so" usr/lib
vmove usr/lib/libbfd.so usr/lib
vmove usr/lib/libopcodes.so usr/lib
}

View File

@ -1,7 +1,7 @@
# Template file for 'binutils'
pkgname=binutils
version=2.22.52.0.4
revision=1
revision=2
makedepends="flex perl"
subpackages="$pkgname-devel"
short_desc="GNU binary utilities"
@ -26,7 +26,7 @@ long_desc="
do_configure() {
./configure ${CONFIGURE_SHARED_ARGS} --enable-threads \
--enable-64-bit-bfd --enable-multilib --enable-plugins \
--enable-secureplt --with-mmap
--enable-secureplt --with-mmap --enable-shared
}
do_build() {
@ -87,4 +87,8 @@ do_install() {
mv ${DESTDIR}/usr/lib32/* ${DESTDIR}/usr/lib
rmdir ${DESTDIR}/usr/lib32
fi
# Remove the requirement of PACKAGE{,_VERSION} to be defined
# from bfd.h... wth?
sed -i 35,+3d ${DESTDIR}/usr/include/bfd.h
}