[cmake-developers] [CMake 0014684]: Missing -rpath-link with static library in mix

Mantis Bug Tracker mantis at public.kitware.com
Mon Jan 6 08:34:55 EST 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://cmake.org/Bug/view.php?id=14684 
====================================================================== 
Reported By:                Clinton Stimpson
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14684
Category:                   CMake
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-01-06 08:34 EST
Last Modified:              2014-01-06 08:34 EST
====================================================================== 
Summary:                    Missing -rpath-link with static library in mix
Description: 
Using attached project, I get a link error:
/usr/bin/ld: warning: libshareda.so, needed by .../build/subdir/libsharedb.so,
not found (try using -rpath or -rpath-link)
.../build/subdir/libsharedb.so: undefined reference to `shareda()'


Somehow a needed -rpath-link is dropped instead of pushed through the usage of a
static library.

This was found when some newer Linux distributions have the --as-needed linker
flag on by default.
I added the --no-undefined linker flag to help show that the bug isn't in the
code.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-01-06 08:34 Clinton StimpsonNew Issue                                    
2014-01-06 08:34 Clinton StimpsonFile Added: test-rpath-link.tar.gz             
      
======================================================================




More information about the cmake-developers mailing list