From 23db8c4956e6e903970d23891b1c0d6d2995ebdd Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 16 Jun 2022 16:30:58 +0200 Subject: extra/boost: disabling LTO on i486 --- extra/boost/PKGBUILD | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 extra/boost/PKGBUILD (limited to 'extra/boost') diff --git a/extra/boost/PKGBUILD b/extra/boost/PKGBUILD new file mode 100644 index 00000000..12fb68df --- /dev/null +++ b/extra/boost/PKGBUILD @@ -0,0 +1,14 @@ +# no LTO on i486 +if [ "$CARCH" = 'i486' ]; then + sed -i ' + 1i options=(!lto) + ' PKGBUILD +fi +if [ "$CARCH" == 'i486' ]; then + eval "$( + declare -f build | \ + sed ' + s/-ffat-lto-objects//g + ' + )" +fi -- cgit v1.2.3-54-g00ecf