diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2022-04-23 00:25:45 -0400 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2022-04-28 08:44:53 -0400 |
commit | a36ad55338890560d55d628ecf055f7061d16cf4 (patch) | |
tree | 9e2a836443db116f64451f16b2370264d14103e6 /libre/pacman/libmakepkg-add-extra-buildflags-only-when-buildflags.patch | |
parent | eb2a14416eca0aa2b5d7f70c3b85274419374fba (diff) | |
download | abslibre-a36ad55338890560d55d628ecf055f7061d16cf4.tar.gz abslibre-a36ad55338890560d55d628ecf055f7061d16cf4.tar.bz2 abslibre-a36ad55338890560d55d628ecf055f7061d16cf4.zip |
[pacman]: upgrade to v6.0.1
also:
* added keyring update openrc service file
* add dummy.conf
empty.conf and the remaining changes were mainly to minimize the diff against arch
Diffstat (limited to 'libre/pacman/libmakepkg-add-extra-buildflags-only-when-buildflags.patch')
-rw-r--r-- | libre/pacman/libmakepkg-add-extra-buildflags-only-when-buildflags.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/libre/pacman/libmakepkg-add-extra-buildflags-only-when-buildflags.patch b/libre/pacman/libmakepkg-add-extra-buildflags-only-when-buildflags.patch new file mode 100644 index 000000000..365993571 --- /dev/null +++ b/libre/pacman/libmakepkg-add-extra-buildflags-only-when-buildflags.patch @@ -0,0 +1,41 @@ +From 42fe4864a0c8e2846007ffee532fe0cf4b321cdd Mon Sep 17 00:00:00 2001 +From: Allan McRae <allan@archlinux.org> +Date: Sun, 9 Jan 2022 12:45:58 +1000 +Subject: [PATCH] libmakepkg: add extra buildflags only when buildflags is not + disabled + +This means options=('!buildflags') will disable the addition of CFLAG +etc for LTO and debug building. + +Signed-off-by: Allan McRae <allan@archlinux.org> +--- + scripts/libmakepkg/buildenv/debugflags.sh.in | 2 +- + scripts/libmakepkg/buildenv/lto.sh.in | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/scripts/libmakepkg/buildenv/debugflags.sh.in b/scripts/libmakepkg/buildenv/debugflags.sh.in +index 84ca7b71..1cb58613 100644 +--- a/scripts/libmakepkg/buildenv/debugflags.sh.in ++++ b/scripts/libmakepkg/buildenv/debugflags.sh.in +@@ -29,7 +29,7 @@ source "$LIBRARY/util/option.sh" + buildenv_functions+=('buildenv_debugflags') + + buildenv_debugflags() { +- if check_option "debug" "y"; then ++ if check_option "debug" "y" && ! check_option "buildflags" "n"; then + DEBUG_CFLAGS+=" -ffile-prefix-map=$srcdir=${DBGSRCDIR:-/usr/src/debug}" + DEBUG_CXXFLAGS+=" -ffile-prefix-map=$srcdir=${DBGSRCDIR:-/usr/src/debug}" + DEBUG_RUSTFLAGS+=" --remap-path-prefix=$srcdir=${DBGSRCDIR:-/usr/src/debug}" +diff --git a/scripts/libmakepkg/buildenv/lto.sh.in b/scripts/libmakepkg/buildenv/lto.sh.in +index 081d5648..6e500eab 100644 +--- a/scripts/libmakepkg/buildenv/lto.sh.in ++++ b/scripts/libmakepkg/buildenv/lto.sh.in +@@ -30,7 +30,7 @@ build_options+=('lto') + buildenv_functions+=('buildenv_lto') + + buildenv_lto() { +- if check_option "lto" "y"; then ++ if check_option "lto" "y" && ! check_option "buildflags" "n"; then + CFLAGS+=" -flto" + CXXFLAGS+=" -flto" + LDFLAGS+=" -flto" |