Opened 12 years ago

Closed 11 years ago

#38880 closed defect (fixed)

zmq: Use macports libtool to support compilation against libc++

Reported by: dh@… Owned by: merijn (Merijn Verstraaten)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc:
Port: zmq

Description

I am currently attempting to build various ports (in a separate tree) against libc++ rather than the default libstdc++. Currently zmq builds using its own libtool which does not support linking against libc++ (as it discards any -stdlib option passed).

The following patch makes zmq use the macports provided libtool which correctly handles the -stdlib option.

Index: Portfile
===================================================================
--- Portfile	(revision 105277)
+++ Portfile	(working copy)
@@ -40,3 +40,7 @@
 livecheck.type      regex
 livecheck.url       ${homepage}area:download
 livecheck.regex     zeromq-(\[0-9.\]+)${extract.suffix}
+
+# macports libtool allows linking against libc++, the libtool in the distribution does not
+depends_build       port:libtool
+build.args          LIBTOOL=${prefix}/bin/glibtool

Change History (1)

comment:1 Changed 11 years ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: newclosed

In r106140 by stromnov@.

Note: See TracTickets for help on using tickets.