[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:

{{{
/opt/gentoo/usr/lib/gcc/i386-pc-solaris2.11/4.2.0/include/sys/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() {
        [[ "${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
first.

Does anyone has an elegant solution?







--

FList
--
[hidden email] mailing list