trafficserver-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Peach <jpe...@apache.org>
Subject clang build error with -pthread on Mac OS X
Date Sun, 03 Feb 2013 22:20:10 GMT
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'

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
Mime
View raw message