aboutsummaryrefslogtreecommitdiff
path: root/repos/core/binutils/abuild
blob: 62a2b5776b6e1ef11f5960fa7d55809246edb6a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name=binutils
version=2.44
release=1
source="https://sourceware.org/pub/$name/releases/$name-$version.tar.xz"

build() {
	sed -i 's/\(^INFO_DEPS *=\).*/\1/' bfd/Makefile.in
	sed -i 's/\(^INFO_DEPS *=\).*/\1/' gas/Makefile.in
	
	mkdir build
	cd build
	
	../configure \
	        --prefix=/usr \
	        --sysconfdir=/etc \
	        --enable-gold \
	        --enable-ld=default \
	        --enable-lto \
	        --enable-plugins \
	        --enable-shared \
	        --disable-werror \
	        --with-system-zlib \
	        --disable-multilib \
	        --disable-gdb \
	        --disable-gprof \
	        --disable-gprofng \
	        --without-zstd \
	        --with-lib-path=/usr/lib:/lib
	make DESTDIR=$PKG tooldir=/usr
	make DESTDIR=$PKG tooldir=/usr install
}