Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 677956
Collapse All | Expand All

(-)a/media-libs/giflib/giflib-5.1.6.ebuild (-1 / +7 lines)
Lines 26-31 src_prepare() { Link Here
26
}
26
}
27
27
28
multilib_src_compile() {
28
multilib_src_compile() {
29
	# Use reallocarray() from libc if available.
30
	if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -D_GNU_SOURCE -o "${T}/reallocarray_test" -x c - <<< $'#include <stdlib.h>\nint main() {void *p = reallocarray(NULL, 0, 0);}' 2> /dev/null; then
31
		local -x CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE -DHAVE_REALLOCARRAY"
32
		sed -e "s/ openbsd-reallocarray\.c//" -i Makefile || die
33
		rm openbsd-reallocarray.c || die
34
	fi
35
29
	emake \
36
	emake \
30
		CC="$(tc-getCC)" \
37
		CC="$(tc-getCC)" \
31
		CFLAGS="${CFLAGS} -std=gnu99 -fPIC -Wno-format-truncation" \
38
		CFLAGS="${CFLAGS} -std=gnu99 -fPIC -Wno-format-truncation" \
32
- 

Return to bug 677956