[MacPorts] #37916: libprce libtool file breaks clang builds by adding the -pthread option

MacPorts noreply at macports.org
Sun Feb 3 14:21:52 PST 2013


#37916: libprce libtool file breaks clang builds by adding the -pthread option
----------------------+--------------------------------
 Reporter:  jpeach@…  |      Owner:  macports-tickets@…
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:  2.1.2
 Keywords:            |       Port:  libpcre
----------------------+--------------------------------
 /opt/local/lib/libpcre.la contains the line:

     inherited_linker_flags='  -pthread'

 This option is only valid for gcc, so when clang sees it, it emits a
 diagnostic. This can break the build of software that uses libpcre
 (especially when building with warnings as errors).

 This only started happening recently, maybe around MacPorts 2.1.3. The
 workaround is to edit libpcre.la to remove the additional option, but it
 takes some time to figure out what the problem is.

-- 
Ticket URL: <https://trac.macports.org/ticket/37916>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list