[MacPorts] #38878: gettext: Use macports libtool and thus support compilation against libc++
MacPorts
noreply at macports.org
Sun Apr 21 17:02:20 PDT 2013
#38878: gettext: Use macports libtool and thus support compilation against libc++
--------------------+--------------------------
Reporter: dh@… | Owner: ryandesign@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.3
Keywords: | Port: gettext
--------------------+--------------------------
I am currently attempting to build various ports (in a separate tree)
against `libc++` rather than the default `libstdc++`. Currently `gettext`
builds using its own libtool shipped in the distribution. That libtool
does not support linking against `libc++` (as it discards any`-stdlib`
option passed). This results in one of the built libraries `libasprintf`
linking against `libstdc++`.
This patch makes `gettext` depend on our own libtool port and uses it
during the build phase.
{{{
Index: Portfile
===================================================================
--- Portfile (revision 105464)
+++ Portfile (working copy)
@@ -7,6 +7,7 @@
name gettext
version 0.18.2.1
+revision 1
categories devel
maintainers ryandesign
# libs are LGPL and executables are GPL
@@ -53,6 +54,10 @@
port:libiconv \
port:ncurses
+# macports libtool allows linking against libc++, the libtool in the
distribution does not
+depends_build port:libtool
+build.args LIBTOOL=${prefix}/bin/glibtool
+
test.run yes
test.target check
}}}
--
Ticket URL: <https://trac.macports.org/ticket/38878>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list