Opened 10 years ago
Last modified 6 months ago
#44232 closed enhancement
patch to have cmake use -dynamiclib in CMAKE_SHARED_MODULE_CREATE — at Version 1
Reported by: | RJVB (René Bertin) | Owned by: | css@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | haspatch | Cc: | |
Port: | cmake |
Description (last modified by mf2k (Frank Schima))
Re: 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 (3)
Changed 10 years ago by RJVB (René Bertin)
Attachment: | cmake-portfile-diff.patch added |
---|
Changed 10 years ago by RJVB (René Bertin)
Attachment: | patch-SHARED_BUNDLE_flag.diff added |
---|
patch to replace -bundle with -dynamiclib
comment:1 Changed 10 years ago by mf2k (Frank Schima)
Description: | modified (diff) |
---|---|
Keywords: | haspatch added |
Owner: | changed from macports-tickets@… to css@… |
Type: | submission → enhancement |
Version: | 2.3.1 |
In the future, please Cc the port maintainers (port info --maintainers cmake
).
portfile diff