[MacPorts] #38879: log4cplus: Use macports libtool and thus support compilation against libc++

MacPorts noreply at macports.org
Sun Apr 21 18:59:34 PDT 2013


#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


More information about the macports-tickets mailing list