2012/11/5 Philip Herron <span dir="ltr"><<a href="mailto:redbrain@gcc.gnu.org" target="_blank">redbrain@gcc.gnu.org</a>></span><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">



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



<div><br></div><div>I see that the expat library is available from our repository[1]. Could you explain more about what is your larger goal?</div><div><br></div><div>Maciej</div><div><br></div><div>[1] <a href="http://www.opencsw.org/packages/libexpat_dev/" target="_blank">http://www.opencsw.org/packages/libexpat_dev/</a></div>



</div></div>