[MacPorts] #37916: libprce libtool file breaks clang builds by adding the -pthread option
#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
#37916: libprce libtool file breaks clang builds by adding the -pthread option -----------------------+---------------------- Reporter: jpeach@… | Owner: larryv@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: pcre | -----------------------+---------------------- Changes (by larryv@…): * status: new => assigned * owner: macports-tickets@… => larryv@… * version: 2.1.2 => * port: libpcre => pcre Comment: Thanks, I’ll look into this shortly. -- Ticket URL: <https://trac.macports.org/ticket/37916#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37916: pcre @8.32: libtool file breaks clang builds by adding the -pthread option -----------------------+---------------------- Reporter: jpeach@… | Owner: larryv@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: pcre | -----------------------+---------------------- Changes (by larryv@…): * status: assigned => closed * resolution: => fixed Comment: Fixed in r102473. Not sure why PCRE does this, since `libSystem` already provides the pthreads API. GCC doesn’t need the flag either. -- Ticket URL: <https://trac.macports.org/ticket/37916#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37916: pcre @8.32: libtool file breaks clang builds by adding the -pthread option -----------------------+---------------------- Reporter: jpeach@… | Owner: larryv@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: pcre | -----------------------+---------------------- Comment (by larryv@…): Oops; as you mentioned in the ticket, the libtool files record the linker flags. Revbumped in r102474. -- Ticket URL: <https://trac.macports.org/ticket/37916#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37916: pcre @8.32: libtool file breaks clang builds by adding the -pthread option -----------------------+---------------------- Reporter: jpeach@… | Owner: larryv@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: pcre | -----------------------+---------------------- Comment (by jpeach@…): Verified that this is fixed in pcre @8.32_1. Thanks! -- Ticket URL: <https://trac.macports.org/ticket/37916#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts