summaryrefslogtreecommitdiff
path: root/repo/system/binutils.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-01-16 15:02:47 +0000
committerdavidovski <david@davidovski.xyz>2022-01-16 15:02:47 +0000
commit003727289cc45e29eff0c0c48ad0f9660f96644f (patch)
tree0fd7f0ac830dee29984262980b8c144e26aa09ba /repo/system/binutils.xibuild
parentd2d97f84d5c037d7a6b8db6c497a5987030b7335 (diff)
separated patch, build, check and package stages
Diffstat (limited to 'repo/system/binutils.xibuild')
-rw-r--r--repo/system/binutils.xibuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/repo/system/binutils.xibuild b/repo/system/binutils.xibuild
index d305d56..88550bd 100644
--- a/repo/system/binutils.xibuild
+++ b/repo/system/binutils.xibuild
@@ -6,7 +6,7 @@ PKG_VER=2.37
SOURCE=https://ftp.gnu.org/gnu/binutils/binutils-$PKG_VER.tar.xz
DESC="tools for handling object files"
-build () {
+patch () {
curl https://www.linuxfromscratch.org/patches/lfs/development/binutils-$PKG_VER-upstream_fix-1.patch > binutils-$PKG_VER-upstream_fix-1.patch
patch -Np1 -i binutils-$PKG_VER-upstream_fix-1.patch
@@ -14,7 +14,9 @@ build () {
sed -i '63d' etc/texi2pod.pl
find -name \*.1 -delete
+}
+build () {
mkdir -v build
cd build
../configure --prefix=/usr \
@@ -28,6 +30,9 @@ build () {
--with-system-zlib
make tooldir=/usr
+}
+
+check () {
make -k check || true
}