On Sunday, February 03, 2013 02:20:10 PM James Peach wrote: > Hi all, > > If you are trying to build ATS on Mac OS X using clang, then you are likely > to get the following error: > > clang: error: argument unused during compilation: '-pthread'
On Solaris *our* buildsystem (not libtool, or pcre, or autoconf, our own configure.ac) always adds -mt to the the compiler options if it's unable to determine that the compiler is EXACTLY "gcc". > After spending an thoroughly enjoyable afternoon grovelling around libtool > internals, it turns out that this is caused by a build error that libtool > propagates from libpcre. If you are on a recent Mac Ports, then you will > find that the inherited_linker_flags line of /opt/local/lib/libpcre.la sets > the -pthread option. Comment out this line to make the build work. > > I filed https://trac.macports.org/ticket/37916 > > J -- i