57 lines
1.5 KiB
Plaintext
57 lines
1.5 KiB
Plaintext
|
# Description: Linker, assembler, and other tools for handling object files.
|
||
|
# URL: http://sources.redhat.com/binutils/
|
||
|
# Maintainers: Tristan Gingold ( gingold at adacore dot com ),Alan Modra ( amodra at bigpond dot net dot au )
|
||
|
# Packager: tnut at nutyx dot org
|
||
|
name=binutils
|
||
|
version=2.26
|
||
|
release=3
|
||
|
|
||
|
source=(http://ftp.gnu.org/gnu/binutils/binutils-$version.tar.bz2
|
||
|
http://www.linuxfromscratch.org/patches/lfs/development/binutils-$version-upstream_fix-1.patch
|
||
|
http://www.linuxfromscratch.org/patches/lfs/development/binutils-$version-upstream_fix-2.patch)
|
||
|
build()
|
||
|
{
|
||
|
cd binutils-$version
|
||
|
|
||
|
patch -Np1 -i ../binutils-$version-upstream_fix-1.patch
|
||
|
patch -Np1 -i ../binutils-$version-upstream_fix-2.patch
|
||
|
|
||
|
mkdir -v build
|
||
|
cd build
|
||
|
|
||
|
../configure \
|
||
|
--prefix=/usr --includedir=/usr/include \
|
||
|
--bindir=/bin --sbindir=/sbin \
|
||
|
--datarootdir=/usr/share \
|
||
|
--enable-shared --disable-werror
|
||
|
|
||
|
make tooldir=/
|
||
|
|
||
|
# make LDFLAGS="" -k check || true
|
||
|
|
||
|
# make tooldir=/usr DESTDIR=$PKG install
|
||
|
make tooldir=/usr DESTDIR=$PKG install
|
||
|
|
||
|
rm -rf $PKG/usr/share/info/dir
|
||
|
mkdir $PKG/lib
|
||
|
for lib in libopcodes libbfd
|
||
|
do
|
||
|
mv $PKG/usr/lib/$lib-$version.20160125.so \
|
||
|
$PKG/lib/$lib-$version.so
|
||
|
ln -s $lib-$version.so $PKG/lib/$lib
|
||
|
ln -s ../../lib/$lib-$version.20160125.so \
|
||
|
$PKG/usr/lib/$lib-$version.so
|
||
|
ln -s ../../lib/$lib-$version.so \
|
||
|
$PKG/usr/lib/$lib
|
||
|
done
|
||
|
}
|
||
|
devel()
|
||
|
{
|
||
|
cd $PKG
|
||
|
bsdtar -r -f \
|
||
|
$PKGMK_PACKAGE_DIR/${name}.${group}#$version-`uname -m`.$PKGMK_PACKAGE_EXT \
|
||
|
usr/include usr/lib/ldscripts
|
||
|
rm -r usr/include \
|
||
|
usr/lib/ldscripts
|
||
|
}
|