[csw-users] gcc and autoconf

Maciej (Matchek) Bliziński maciej at opencsw.org
Mon Nov 5 18:01:20 CET 2012


2012/11/5 Philip Herron <redbrain at gcc.gnu.org>

> Hey all
>
> Trying to use the gcc4core package all is fine, then trying to
> ./configure subversion i get as far as Expat and it fails but Expat is
> on my system aswell.
>
> The error is:
>
> gcc -c -g -O2   -mt  -D_LARGEFILE64_SOURCE -DNE_LFS    -DSOLARIS2=9
> -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE
> conftest.c >&5
> cc1: error: unrecognized command line option '-mt'
>
> -mt is being passed to everything.
>
> I dont understand why this is happening. Has anyone else come across
> this in using ./configure for gcc compiler on solaris to configur
> packages.
>

Hi Phil,

>From the top of my head, things like this one might be caused by a
dependency. For example, expat wants to link against another library, and
calls its foo-config utility to find out the compilation flags that are
needed need to link against that library. If the dependency was compiled
with Solaris Studio, its foo-config utility will return flags that are
understood by Solaris Studio, but not necessarily by GCC. One way to go
about this is to get Solaris Studio and use it to compile expat. Another
way is to rebuild everything with GCC. Yet another way is to hack the expat
build system to cut out the -mt flag.

I see that the expat library is available from our repository[1]. Could you
explain more about what is your larger goal?

Maciej

[1] http://www.opencsw.org/packages/libexpat_dev/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencsw.org/pipermail/users/attachments/20121105/23218bdb/attachment-0001.html>


More information about the users mailing list