mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 09:07:26 -08:00
media-libs/libcaca: build with -fno-strict-overflow
There's UB in at least one place and probably others from looking at upstream bug reports. I get a `test-caca` test failure w/ GCC trunk at just -O2 which prompted me to look at this. Bug: https://github.com/cacalabs/libcaca/issues/86 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
59ec895381
commit
d4cec827f3
@ -77,6 +77,14 @@ src_prepare() {
|
||||
sed -i -e '/PKG_CHECK_MODULES/s:ftgl:dIsAbLe&:' configure.ac || die
|
||||
fi
|
||||
|
||||
# fix docs install path, bug 543870#c14
|
||||
sed -i "s/libcaca-dev/${PF}/g" doc/Makefile.am || die
|
||||
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
if use imlib && ! use X; then
|
||||
append-cflags -DX_DISPLAY_MISSING
|
||||
fi
|
||||
@ -87,11 +95,10 @@ src_prepare() {
|
||||
# bug #601902, bug #825058
|
||||
use ncurses && append-libs $($(tc-getPKG_CONFIG) --libs tinfow || die)
|
||||
|
||||
# fix docs install path, bug 543870#c14
|
||||
sed -i "s/libcaca-dev/${PF}/g" doc/Makefile.am || die
|
||||
# https://github.com/cacalabs/libcaca/issues/86
|
||||
append-flags -fno-strict-overflow
|
||||
|
||||
default
|
||||
eautoreconf
|
||||
multilib-minimal_src_configure
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
@ -67,6 +67,14 @@ src_prepare() {
|
||||
sed -i -e '/PKG_CHECK_MODULES/s:ftgl:dIsAbLe&:' configure.ac || die
|
||||
fi
|
||||
|
||||
# fix docs install path, bug 543870#c14
|
||||
sed -i "s/libcaca-dev/${PF}/g" doc/Makefile.am || die
|
||||
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
if use imlib && ! use X; then
|
||||
append-cflags -DX_DISPLAY_MISSING
|
||||
fi
|
||||
@ -77,11 +85,10 @@ src_prepare() {
|
||||
# bug #601902, bug #825058
|
||||
use ncurses && append-libs $($(tc-getPKG_CONFIG) --libs tinfow || die)
|
||||
|
||||
# fix docs install path, bug 543870#c14
|
||||
sed -i "s/libcaca-dev/${PF}/g" doc/Makefile.am || die
|
||||
# https://github.com/cacalabs/libcaca/issues/86
|
||||
append-flags -fno-strict-overflow
|
||||
|
||||
default
|
||||
eautoreconf
|
||||
multilib-minimal_src_configure
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
Loading…
x
Reference in New Issue
Block a user