Opened 8 years ago

Last modified 6 years ago

#38878 new defect

gettext: Use macports libtool and thus support compilation against libc++

Reported by: dh@… Owned by: ryandesign (Ryan 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 Changed 8 years ago by ryandesign (Ryan Schmidt)

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.

comment:2 in reply to:  1 Changed 8 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.

comment:3 Changed 7 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:4 Changed 6 years ago by larryv (Lawrence Velázquez)

Cc: larryv@… added

Cc Me!

Note: See TracTickets for help on using tickets.