Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/core/linux/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2022-09-16 15:26:50 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2022-09-16 15:26:50 +0200
commit19221c0b7f56050d5fafe927b523a842697a3322 (patch)
treeff7016ec960b74d1cb361c3178a08990253d1e3f /core/linux/PKGBUILD
parent04360e1bece3b2980bf95ed6b07350243b8875e5 (diff)
parent11719c85c724e7a64b0a63c530c78e1b70fe986e (diff)
Merge branch 'master' of ssh://git.archlinux32.org/packages
Diffstat (limited to 'core/linux/PKGBUILD')
-rw-r--r--core/linux/PKGBUILD9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/linux/PKGBUILD b/core/linux/PKGBUILD
index 0921f075..6131c7cc 100644
--- a/core/linux/PKGBUILD
+++ b/core/linux/PKGBUILD
@@ -29,9 +29,18 @@ eval "$(
a \
install -t "${builddir}/arch/x86" -m644 arch/x86/Makefile_32.cpu
}
+ /}/ i depends+=(gcc-libs=$(get_gcc_version_from_config))
'
)"
+get_gcc_version_from_config() {
+ sed '
+ s/^CONFIG_CC_VERSION_TEXT="gcc (GCC) \([0-9.]\+\)"$/\1/
+ t
+ d
+ ' "$_srcname/.config"
+}
+
# use our tarballer instead of cloning from git
for ((i=0; i<${#source[@]}; i++)); do
infos=$(