From b72de63a50fcd46ec290b0028f47f1f9f00b7a9b Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 26 Mar 2022 12:50:53 +0100 Subject: extra/meson: local arch-meson script and patch for no LTO for i486 --- extra/meson/arch-meson | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 extra/meson/arch-meson (limited to 'extra/meson/arch-meson') diff --git a/extra/meson/arch-meson b/extra/meson/arch-meson new file mode 100755 index 00000000..577edca4 --- /dev/null +++ b/extra/meson/arch-meson @@ -0,0 +1,21 @@ +#!/bin/bash -ex +# Highly opinionated wrapper for Arch Linux packaging + +CARCH=$(. /etc/makepkg.conf; echo $CARCH) + +if [ "${CARCH}" = "i486" ]; then + LTO="b_lto=false" +else + LTO="b_lto=true" +fi + +exec meson setup \ + --prefix /usr \ + --libexecdir lib \ + --sbindir bin \ + --buildtype plain \ + --auto-features enabled \ + --wrap-mode nodownload \ + -D "${LTO}" \ + -D b_pie=true \ + "$@" -- cgit v1.2.3-70-g09d2