[MacPorts] #44232: patch to have cmake use -dynamiclib in CMAKE_SHARED_MODULE_CREATE

MacPorts noreply at macports.org
Thu Jul 3 11:37:15 PDT 2014


#44232: patch to have cmake use -dynamiclib in CMAKE_SHARED_MODULE_CREATE
-------------------------+--------------------------------
 Reporter:  rjvbertin@…  |      Owner:  macports-tickets@…
     Type:  submission   |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:  2.3.1
 Keywords:               |       Port:  cmake
-------------------------+--------------------------------
 Re: http://trac.macports.org/ticket/40188

 There is an open issue with cmake: it uses the obsolete `-bundle` option
 instead of `-dynamiclib` when creating a shared module (AKA bundle or
 plugin). When -bundle is used (at least in x86_64 mode), the linker will
 refuse to pull in the resulting objects if they're also used as linker
 input. Using -dynamiclib reenables that, and appears to be without any
 side-effects on the other intended use of the resulting shared modules.
 As mentioned in ticket #40188, this affects certain python extensions, but
 also the Calligra suite (not yet in MacPorts).

 Attached are a patchfile to add to the cmake port to tackle the issue, as
 well as a Portfile diff.

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


More information about the macports-tickets mailing list