aboutsummaryrefslogtreecommitdiff
path: root/repos/core/binutils/abuild
diff options
context:
space:
mode:
authoremmett1 <emmett1.2miligrams@protonmail.com>2024-06-13 00:25:03 +0800
committeremmett1 <emmett1.2miligrams@protonmail.com>2024-06-13 00:25:03 +0800
commit239ced844ea434e623686094af3de168f90e4391 (patch)
tree541d2c575f3b3832ca1a3087bde3f65dc74a8f89 /repos/core/binutils/abuild
parent3f80bb67166389b3acabf8f024ee1ad1a4364c1f (diff)
downloadalicelinux-239ced844ea434e623686094af3de168f90e4391.tar.gz
alicelinux-239ced844ea434e623686094af3de168f90e4391.zip
repos updated
Diffstat (limited to 'repos/core/binutils/abuild')
-rw-r--r--repos/core/binutils/abuild31
1 files changed, 31 insertions, 0 deletions
diff --git a/repos/core/binutils/abuild b/repos/core/binutils/abuild
new file mode 100644
index 00000000..2f73b3c5
--- /dev/null
+++ b/repos/core/binutils/abuild
@@ -0,0 +1,31 @@
+name=binutils
+version=2.42
+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
+}