milis/talimatname/temel/binutils/talimat

51 lines
1.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: Bağlayıcı, assembler ve nesne dosyalarını işlemek için kullanılan diğer araçlar.
# URL: http://sources.redhat.com/binutils/
# Paketçi: milisarge
# Gerekler:
# Grup: temel
isim=binutils
surum=2.26
devir=3
kaynak=(http://ftp.gnu.org/gnu/binutils/binutils-$surum.tar.bz2
http://www.linuxfromscratch.org/patches/downloads/binutils//binutils-$surum-upstream_fix-1.patch
http://www.linuxfromscratch.org/patches/downloads/binutils//binutils-$surum-upstream_fix-2.patch)
derle() {
cd binutils-$surum
patch -Np1 -i ../binutils-$surum-upstream_fix-1.patch
patch -Np1 -i ../binutils-$surum-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
rm $PKG/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}.1
mkdir $PKG/lib
for lib in libopcodes libbfd
do
mv $PKG/usr/lib/$lib-$surum.20160125.so \
$PKG/lib/$lib-$surum.so
ln -s $lib-$surum.so $PKG/lib/$lib
ln -s ../../lib/$lib-$surum.20160125.so \
$PKG/usr/lib/$lib-$surum.so
ln -s ../../lib/$lib-$surum.so \
$PKG/usr/lib/$lib
done
}