[MacPorts] #38879: log4cplus: Use macports libtool and thus support compilation against libc++
#38879: log4cplus: Use macports libtool and thus support compilation against libc++ --------------------+------------------------ Reporter: dh@… | Owner: macports@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: | Port: log4cplus --------------------+------------------------ I am currently attempting to build various ports (in a separate tree) against `libc++` rather than the default `libstdc++`. Currently `log4cplus` builds using its own `libtool` shipped in the distribution. That `libtool` does not support linking against `libc++` (as it discards any `-stdlib` option passed). The following patch makes `log4cplus` use the macports provided `libtool` which correctly handles the -stdlib option. {{{ Index: Portfile =================================================================== --- Portfile (revision 105277) +++ Portfile (working copy) @@ -19,3 +19,7 @@ checksums md5 306f758596f3a78cbe21a41e2362bac2 \ sha1 cffac9b8c6f7b7c2f6e19a029403b2f844aaf5fc \ rmd160 962ec0a49af0d345ce452799a2395cbe7eda3868 + +# macports libtool allows linking against libc++, the libtool in the distribution does not +depends_build port:libtool +build.args LIBTOOL=${prefix}/bin/glibtool }}} -- Ticket URL: <https://trac.macports.org/ticket/38879> MacPorts <http://www.macports.org/> Ports system for OS X
#38879: log4cplus: Use macports libtool and thus support compilation against libc++ ------------------------+------------------------ Reporter: dh@… | Owner: macports@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: log4cplus | ------------------------+------------------------ Comment (by vhaisman@…): Why are the libtool changes necessary for this not part of the upstream libtool? Or are they and I have missed an update? -- Ticket URL: <https://trac.macports.org/ticket/38879#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#38879: log4cplus: Use macports libtool and thus support compilation against libc++ ------------------------+------------------------ Reporter: dh@… | Owner: macports@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: log4cplus | ------------------------+------------------------ Comment (by dh@…): I believe this has been pushed (and accepted) upstream and will appear in 2.4.3. (At least the commentary on the patches we make of libtool 2.4.2 would indicate this) -- Ticket URL: <https://trac.macports.org/ticket/38879#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#38879: log4cplus: Use macports libtool and thus support compilation against libc++ ------------------------+------------------------ Reporter: dh@… | Owner: macports@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: fixed | Keywords: Port: log4cplus | ------------------------+------------------------ Changes (by dh@…): * status: new => closed * resolution: => fixed Comment: Fixed in revision 109789, also bumped to 1.1.x which I have been using in my tree for the last few months without issues -- Ticket URL: <https://trac.macports.org/ticket/38879#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts