OPTFLAGS is used by the configure script to define -DGPAC_HAVE_CONFIG_H overriding it at the make-command fails the build Reproducible: Always Steps to Reproduce: 1. Use normal CFLAGS in /etc/portage/make.conf Actual Results: Build fails Expected Results: Build succeeds the provided configure script defines -DGPAC_HAVE_CONFIG via OPTFLAGS redefining OPTFLAGS during the build, fails the build (at least if you don't want GL, as I have) The configure script does provide --extra-cflags Possible fix (but OPTFLAGS probably needs more quoting) --- /usr/portage/media-video/gpac/gpac-0.5.0.ebuild 2012-11-01 19:31:21.000000000 +0100 +++ /usr/local/portage/media-video/gpac/gpac-0.5.0-r50.ebuild 2012-12-29 21:13:49.827765517 +0100 @@ -126,6 +126,7 @@ $(my_use a52) \ --cc="$(tc-getCC)" \ --libdir="/$(get_libdir)" \ + --extra-cflags="${CFLAGS}" ${myconf} #temporary build fix @@ -135,12 +136,12 @@ src_compile() { # #emake OPTFLAGS="${CFLAGS} -fPIC" # LD="$(tc-getCC)" \ - emake OPTFLAGS="${CFLAGS}" + emake } src_install() { - emake STRIP="true" OPTFLAGS="${CFLAGS}" DESTDIR="${D}" install - emake STRIP="true" OPTFLAGS="${CFLAGS}" DESTDIR="${D}" install-lib + emake STRIP="true" DESTDIR="${D}" install + emake STRIP="true" DESTDIR="${D}" install-lib dodoc AUTHORS BUGS Changelog README TODO INSTALLME dodoc doc/*.txt dohtml doc/*.html
14 Aug 2013; Alexis Ballier <aballier@gentoo.org> gpac-0.5.0.ebuild: + Pass extra-cflags to configure instead, bug #449238 by Stef Simoens. + Simplifies the ebuild. +