View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015705CMakeCMakepublic2015-08-20 08:192016-01-04 11:52
ReporterFelix Geyer 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake 3.3.1 
Target VersionCMake 3.4Fixed in VersionCMake 3.4 
Summary0015705: Sets SONAME for modules
Descriptioncmake sets an SONAME for modules by default which doesn't make much sense.
It's only useful for shared libraries that application link against.

In particular this is a problem for Debian as it has tools to track which symbols are exported by libraries.
This tool looks at all shared libraries that have an SONAME so currently it also records the symbols of plugins generated by cmake-using projects.

Attached is a patch that changes this behavior in cmake.
TagsNo tags attached.
Attached Filespatch file icon 0001-Don-t-set-SONAME-for-modules.patch [^] (1,067 bytes) 2015-08-20 08:19 [Show Content]

 Relationships
related to 0013155closedBrad King Allow option to build module without SONAME 

  Notes
(0039305)
Brad King (manager)
2015-08-20 10:13

For reference, the NO_SONAME target property was added for 0013155:

 Support building shared libraries or modules without soname
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e1409ac5 [^]

 Test NO_SONAME property
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=fdb3f878 [^]
(0039314)
Brad King (manager)
2015-08-21 08:51

I added separate testing for NO_SONAME on SHARED libraries:

 Tests: Cover NO_SONAME property for SHARED libraries
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=899458ab [^]

and then applied your patch with updates to the docs and tests:

 Do not set SONAME for MODULE library targets
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=f799ffb5 [^]
(0040119)
Robert Maynard (manager)
2016-01-04 11:52

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2015-08-20 08:19 Felix Geyer New Issue
2015-08-20 08:19 Felix Geyer File Added: 0001-Don-t-set-SONAME-for-modules.patch
2015-08-20 10:10 Brad King Relationship added related to 0013155
2015-08-20 10:13 Brad King Note Added: 0039305
2015-08-21 08:51 Brad King Note Added: 0039314
2015-08-21 08:52 Brad King Assigned To => Brad King
2015-08-21 08:52 Brad King Status new => resolved
2015-08-21 08:52 Brad King Resolution open => fixed
2015-08-21 08:52 Brad King Fixed in Version => CMake 3.4
2015-08-21 08:52 Brad King Target Version => CMake 3.4
2016-01-04 11:52 Robert Maynard Note Added: 0040119
2016-01-04 11:52 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team