Opened 10 years ago

Last modified 4 weeks ago

#44232 closed enhancement

patch to have cmake use -dynamiclib in CMAKE_SHARED_MODULE_CREATE — at Initial Version

Reported by: RJVB (René Bertin) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc:
Port: cmake

Description

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.

Change History (2)

Changed 10 years ago by RJVB (René Bertin)

Attachment: cmake-portfile-diff.patch added

portfile diff

Changed 10 years ago by RJVB (René Bertin)

patch to replace -bundle with -dynamiclib

Note: See TracTickets for help on using tickets.