summaryrefslogtreecommitdiff
path: root/repo/devel/gcc.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/devel/gcc.xibuild
parentd2d97f84d5c037d7a6b8db6c497a5987030b7335 (diff)
separated patch, build, check and package stages
Diffstat (limited to 'repo/devel/gcc.xibuild')
-rw-r--r--repo/devel/gcc.xibuild12
1 files changed, 7 insertions, 5 deletions
diff --git a/repo/devel/gcc.xibuild b/repo/devel/gcc.xibuild
index ab9830d..30a0698 100644
--- a/repo/devel/gcc.xibuild
+++ b/repo/devel/gcc.xibuild
@@ -2,12 +2,12 @@
DEPS=(glibc)
-SOURCE=https://mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-11.2.0/gcc-11.2.0.tar.xz
+PKG_VER=11.2.0
+SOURCE=https://mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-$PKG_VER/gcc-$PKG_VER.tar.xz
DESC="The GNU Compiler Collection - C and C++ frontends"
-
-build () {
+patch () {
#fix an issue breaking libasan.a
sed -e '/static.*SIGSTKSZ/d' \
@@ -20,8 +20,9 @@ build () {
-i.orig gcc/config/i386/t-linux64
;;
esac
+}
-
+build () {
mkdir -v build
cd build
@@ -33,7 +34,9 @@ build () {
--with-system-zlib
make
+}
+check () {
ulimit -s 32768
if id -u tester; then
@@ -41,7 +44,6 @@ build () {
su tester -c "PATH=$PATH make $MAKEFLAGS -k check"
../contrib/test_summary | grep -A7 Summ
fi
-
}