index : packages | |
Archlinux32 package modifications | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2022-09-21 08:19:23 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2022-09-21 08:19:23 +0200 |
commit | b56ada5ec3381bd9be92f1358458a5b1f0242b53 (patch) | |
tree | b2ca6fab51167baa486882e6a044447d9e8508da /extra/linux-olpc-xo1 | |
parent | 0f4b66d9e1542aeb8e6e79f69a7c2a395d82e59f (diff) |
-rw-r--r-- | extra/linux-olpc-xo1/PKGBUILD | 9 |
diff --git a/extra/linux-olpc-xo1/PKGBUILD b/extra/linux-olpc-xo1/PKGBUILD index 29e7b7a7..dd1d38d6 100644 --- a/extra/linux-olpc-xo1/PKGBUILD +++ b/extra/linux-olpc-xo1/PKGBUILD @@ -164,6 +164,15 @@ _package-headers() { echo "Adding symlink..." mkdir -p "$pkgdir/usr/src" ln -sr "$builddir" "$pkgdir/usr/src/$pkgbase" + 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 + ' "$srcdir/$_srcname/.config" } _package-docs() { |