[PREFIX][solaris] pycairo compile issue

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[PREFIX][solaris] pycairo compile issue

Fabrizio Listello
I've this issue compiling pycairo:

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() {
        [[ "${CHOST}" = *-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

Does anyone has an elegant solution?


[hidden email] mailing list