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 ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers