[MacPorts] #44125: cmake needs to support building against / with a deployment target set (prevents libc++ support on Snow Leopard for cmake projects)

MacPorts noreply at macports.org
Mon Jul 21 12:11:21 PDT 2014


#44125: cmake needs to support building against / with a deployment target set
(prevents libc++ support on Snow Leopard for cmake projects)
---------------------------+--------------------------------
  Reporter:  mojca@…       |      Owner:  macports-tickets@…
      Type:  defect        |     Status:  closed
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:
Resolution:  fixed         |   Keywords:
      Port:  cmake libcxx  |
---------------------------+--------------------------------

Comment (by jeremyhu@…):

 Yeah, that's the problem with autoconf based approaches.  A better
 approach might be to check if stat64 was a weak symbol.  If it is week,
 then perhaps HAVE_STAT64 should be 0 and a HAVE_WEAK_STAT64 be defined to
 1.  Code which builds based on the HAVE_STAT64 macro (which just calls it
 unconditionally) will work by falling back to the old codepath even though
 stat64 is conditionally available.  Similarly, it allows developers to
 conditionally use stat64 with runtime checks if they know what they're
 doing with HAVE_WEAK_STAT64.

 But that's an autoconf bug, and autoconf is GPLv3, so I'm not going to
 touch it ;)

-- 
Ticket URL: <https://trac.macports.org/ticket/44125#comment:23>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list