List Info

Thread: pycairo compile issue




pycairo compile issue
user name
2007-06-20 11:43:24
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-altgentoo.org mailing list


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )