milis/talimatname/temel/binutils/talimat

51 lines
1.3 KiB
Plaintext
Raw Normal View History

2018-01-08 21:41:05 +01:00
# Tanım: Bağlayıcı, assembler ve nesne dosyalarını işlemek için kullanılan diğer araçlar.
2016-02-24 01:27:23 +01:00
# URL: http://sources.redhat.com/binutils/
2018-01-08 15:01:28 +01:00
# Paketçi: milisarge
2017-10-27 21:56:50 +02:00
# Gerekler:
2018-01-08 15:01:28 +01:00
# Grup: temel
2017-10-27 21:56:50 +02:00
2017-10-28 14:15:02 +02:00
isim=binutils
surum=2.26
devir=3
2016-02-24 01:27:23 +01:00
2017-10-28 14:15:02 +02:00
kaynak=(http://ftp.gnu.org/gnu/binutils/binutils-$surum.tar.bz2
2018-01-09 17:49:18 +01:00
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)
2017-10-27 21:56:50 +02:00
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:15:02 +02:00
cd binutils-$surum
2017-10-27 21:56:50 +02:00
2017-10-28 14:15:02 +02:00
patch -Np1 -i ../binutils-$surum-upstream_fix-1.patch
patch -Np1 -i ../binutils-$surum-upstream_fix-2.patch
2017-10-27 21:56:50 +02:00
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
2017-10-28 14:15:02 +02:00
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 \
2017-10-27 21:56:50 +02:00
$PKG/usr/lib/$lib
done
2016-02-24 01:27:23 +01:00
}