I've this issue compiling pycairo:
{{{
/opt/gentoo/usr/lib/gcc/i386-pc-solaris2.11/4.2.0/include/sy
s/feature_tests.h:362:2:
error: #error "Compiler or options invalid for pre-UNIX
03 X/Open
applications and pre-2001 POSIX applications"
}}}
I googled around and found that this can be
"resolved" specifying
"-ansi" as a CFLAG. I tried this:
src_compile() {
[[ "$" = *-solaris2.11 ]]
&& append-flags "-ansi";
econf || die "econf failed";
emake || die "emake failed";
}
but when ./configure is executed, the Makefile is produced
with
CFLAGS='-ansi -std=c99' and it seems that the last overrides
the
first.
Does anyone has an elegant solution?
--
FList
--
gentoo-alt gentoo.org mailing list
|