| Summary: | Build issue: rpath not set on installed libs/binaries | ||
|---|---|---|---|
| Product: | TDE | Reporter: | ulrich.gemkow |
| Component: | other (any) | Assignee: | Timothy Pearson <kb9vqf> |
| Status: | NEW --- | ||
| Severity: | enhancement | CC: | bugwatch, jhgdfguryyvudf |
| Priority: | P5 | ||
| Version: | R14.0.x [Trinity] | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Compiler Version: | TDE Version String: | ||
| Application Version: | Application Name: | ||
|
Description
ulrich.gemkow
2012-10-16 14:03:01 CDT
Would you please provide some text? I'll update the wiki accordingly. :) With the packages using autotools there is the --disable-rpath option. I presume not using that option allows building with rpath. With cmake there is -DCMAKE_SKIP_RPATH=OFF/ON. I presume -DCMAKE_SKIP_RPATH=OFF allows building with rpath? First: I am new to cmake! As far as I understand (http://www.cmake.org/Wiki/CMake_RPATH_handling) cmake will not add an rpath when not explicitely told to do so. I found none of the required options in the cmake config files. So cmake is right not to add an rpath. It is rather easy to teach cmake to add an rpath to both libs and binaries (add -DCMAKE_INSTALL_RPATH=...) and this works for me. But I think the author of the cmake-config-files had some reason not to add an rpath which probably should be unterstood before simply adding the options (and maybe introducing problems - I can only test with one rather new distribution). The wiki has the following: "arts and tdelibs execute compiled binaries as part of the build process. Therefore they need to have -DCMAKE_SKIP_RPATH="OFF" set. All other modules do not need the RPATH set." That implies all other cmake packages should use -DCMAKE_SKIP_RPATH="ON" or nothing at all. For the autotools packages there is an explicit --disable-rpath configure option. I'm not knowledgeable about using rpath. I've read a bit on the topic and all I get is a headache. Most writers urge not setting rpath and letting the operating system search for shared libraries. If you want to add that information all I need is some text to copy and paste to the wiki. But the additional text probably should be discussed in the developer's mail list before posting. |