binutils: rebuild for -dbg pkg; cross build support.
This commit is contained in:
parent
77b6c279b9
commit
8148048b3f
2 changed files with 15 additions and 18 deletions
|
@ -1,10 +1,7 @@
|
||||||
# Template file for 'binutils-devel'.
|
# Template file for 'binutils-devel'.
|
||||||
#
|
#
|
||||||
depends="binutils>=$version"
|
depends="binutils>=$version"
|
||||||
short_desc="binutils development files"
|
short_desc="${short_desc} -- development files"
|
||||||
long_desc="${long_desc}
|
|
||||||
|
|
||||||
This package contains files for development, headers, static libs, etc."
|
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vmove usr/include usr
|
vmove usr/include usr
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'binutils'
|
# Template file for 'binutils'
|
||||||
pkgname=binutils
|
pkgname=binutils
|
||||||
version=2.23.51.0.3
|
version=2.23.51.0.3
|
||||||
revision=1
|
revision=2
|
||||||
makedepends="flex perl"
|
makedepends="flex perl"
|
||||||
subpackages="$pkgname-devel"
|
subpackages="$pkgname-devel"
|
||||||
short_desc="GNU binary utilities"
|
short_desc="GNU binary utilities"
|
||||||
|
@ -10,23 +10,19 @@ homepage="http://www.gnu.org/software/binutils/"
|
||||||
license="GPL-3"
|
license="GPL-3"
|
||||||
distfiles="${KERNEL_SITE}/devel/binutils/$pkgname-$version.tar.xz"
|
distfiles="${KERNEL_SITE}/devel/binutils/$pkgname-$version.tar.xz"
|
||||||
checksum=2162905dabf191a2a803eab8d31e7be52d96d6ccd1e0ce42e25d82c6be918cd0
|
checksum=2162905dabf191a2a803eab8d31e7be52d96d6ccd1e0ce42e25d82c6be918cd0
|
||||||
long_desc="
|
|
||||||
The GNU binutils package contains essential tools to assemble, link and
|
|
||||||
manipulate binary and object files. They are often used with a compiler
|
|
||||||
and additional libraries for building software.
|
|
||||||
|
|
||||||
It includes the GNU linker, the portable GNU assembler, ar for modifying
|
if [ -n "$XBPS_CROSS_TRIPLET" ]; then
|
||||||
archives (such as libraries), nm for listing symbols from object files,
|
crossmakedepends="libfl-devel zlib-devel"
|
||||||
objdump for displaying object file information, ranlib for generating
|
fi
|
||||||
archive indexes, size for listing section sizes of object files,
|
|
||||||
strings for outputing the printable characters in files, strip for
|
|
||||||
stripping out symbols (like debugging information) from object files,
|
|
||||||
and other tools."
|
|
||||||
|
|
||||||
do_configure() {
|
do_configure() {
|
||||||
|
if [ "${XBPS_MACHINE}" = "x86_64" ]; then
|
||||||
|
CONFIGFLAG="--enable-64-bit-bfd --enable-multilib"
|
||||||
|
fi
|
||||||
|
|
||||||
./configure ${CONFIGURE_SHARED_ARGS} --enable-threads \
|
./configure ${CONFIGURE_SHARED_ARGS} --enable-threads \
|
||||||
--enable-64-bit-bfd --enable-multilib --enable-plugins \
|
--enable-plugins --enable-secureplt --with-mmap \
|
||||||
--enable-secureplt --with-mmap --enable-shared
|
--enable-shared --disable-bootstrap $CONFIGFLAG
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
|
@ -56,6 +52,10 @@ do_install() {
|
||||||
|
|
||||||
make DESTDIR=${DESTDIR} tooldir=/usr install
|
make DESTDIR=${DESTDIR} tooldir=/usr install
|
||||||
|
|
||||||
|
# Remove ld.bfd (hardlink) and make a symlink.
|
||||||
|
rm -f ${DESTDIR}/usr/bin/ld.bfd
|
||||||
|
ln -sfr ${DESTDIR}/usr/bin/ld ${DESTDIR}/usr/bin/ld.bfd
|
||||||
|
|
||||||
# Add some useful headers
|
# Add some useful headers
|
||||||
install -m644 include/libiberty.h ${DESTDIR}/usr/include
|
install -m644 include/libiberty.h ${DESTDIR}/usr/include
|
||||||
install -m644 include/demangle.h ${DESTDIR}/usr/include
|
install -m644 include/demangle.h ${DESTDIR}/usr/include
|
||||||
|
|
Loading…
Reference in a new issue