The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15126 
====================================================================== 
Reported By:                René J.V. Bertin
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15126
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-09-03 16:49 CEST
Last Modified:              2014-09-03 16:49 CEST
====================================================================== 
Summary:                    cmake issues -bundle instead of -dynamiclib when
creating shared modules
Description: 
While building KDE's Calligra suite, I came across a cmake-related error causing
the linker to refuse to link in 'bundle' shared objects (intended to act as
plugins also) in x86_64 mode. Googling, I came across
http://www.wireshark.org/lists/wireshark-dev/201009/msg00231.html where one
reads

"CMake is using -bundle rather than -dylib/-dynamiclib to build the asn1 plugin,
probably so that it'll work even on versions of OS X where you can't dynamically
load an MH_DYLIB."

AFAIK, that's a moot point since OS X 10.3 (or at least 10.4). Finding all
CMAKE_SHARED_MODULE_CREATE definitions in /opt/local/lib/cmake{,-3.0} and
replacing -bundle with -dynamiclib resolves the linking problem I encountered.

A patchfile is included.

Additional Information: 
Tested on OS X 10.6.8 and 10.9.x, with cmake 2.8 and cmake 3.0 .

https://trac.macports.org/ticket/42840

I thought I already filed this bug "upstream" (from MacPorts) but apparently not
here ...
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-09-03 16:49 René J.V. BertinNew Issue                                    
2014-09-03 16:49 René J.V. BertinFile Added: patch-SHARED_BUNDLE_flag.diff     
              
======================================================================

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to