Opened 13 years ago
Last modified 11 years ago
#38878 new defect
gettext: Use macports libtool and thus support compilation against libc++
| Reported by: | dh@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.1.3 |
| Keywords: | Cc: | cooljeanius (Eric Gallager), larryv (Lawrence Velázquez) | |
| Port: | gettext |
Description
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
Change History (4)
comment:1 follow-up: 2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
comment:2 Changed 13 years ago by dh@…
Replying to ryandesign@…:
Do we really need to increase the revision? If I understand correctly, rebuilding the port would not change the installed files for users who are using the default libstdc++, which would be basically all users except you.
No, you are right. We don't need to alter the revision.

Do we really need to increase the revision? If I understand correctly, rebuilding the port would not change the installed files for users who are using the default libstdc++, which would be basically all users except you.