trafficserver-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Galić <>
Subject Re: clang build error with -pthread on Mac OS X
Date Tue, 05 Feb 2013 06:24:30 GMT
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 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/ sets
> the -pthread option. Comment out this line to make the build work.
> I filed
> J

-- i

View raw message