diff options
author | Joonas Niilola <juippis@gentoo.org> | 2023-01-21 10:21:52 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2023-01-21 10:34:05 +0200 |
commit | e1150b0c245c9c371355c6a94a4eaec020fecd19 (patch) | |
tree | 5095a6df4c3f8681371fcf89fcf6c930835d7a2e /dev-libs/nspr | |
parent | media-sound/rescrobbled: add 0.7.0 (diff) | |
download | gentoo-e1150b0c245c9c371355c6a94a4eaec020fecd19.tar.gz gentoo-e1150b0c245c9c371355c6a94a4eaec020fecd19.tar.bz2 gentoo-e1150b0c245c9c371355c6a94a4eaec020fecd19.zip |
dev-libs/nspr: disable 'optimize' when 'debug' is enabled
Closes: https://bugs.gentoo.org/888972
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-libs/nspr')
-rw-r--r-- | dev-libs/nspr/nspr-4.35-r1.ebuild | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/dev-libs/nspr/nspr-4.35-r1.ebuild b/dev-libs/nspr/nspr-4.35-r1.ebuild index f12eb3a54277..3dc60399c257 100644 --- a/dev-libs/nspr/nspr-4.35-r1.ebuild +++ b/dev-libs/nspr/nspr-4.35-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -70,11 +70,14 @@ multilib_src_configure() { && export CROSS_COMPILE=1 \ || unset CROSS_COMPILE - local myconf=( - --libdir="${EPREFIX}/usr/$(get_libdir)" - $(use_enable debug) - $(use_enable !debug optimize="${my_optlvl}") - ) + local myconf=( --libdir="${EPREFIX}/usr/$(get_libdir)" ) + + # Optimization is disabled when debug is enabled. + if use debug; then + myconf+=( --enable-debug ) + else + myconf+=( --enable-optimize="${my_optlvl}" ) + fi # The configure has some fancy --enable-{{n,x}32,64bit} switches # that trigger some code conditional to platform & arch. This really |