Bug #536

Make RPATH usage optional

Added by S. Herbrechtsmeier over 12 years ago. Updated over 12 years ago.

Status:ResolvedStart date:09/02/2011
Priority:NormalDue date:
Assignee:J. Wienke% Done:

100%

Category:-Estimated time:0.10 hour
Target version:0.5

Description

At the moment the default configuration adds RPATH to all binaries and libraries (CMAKE_INSTALL_RPATH_USE_LINK_PATH). A standard installation has to enable CMAKE_SKIP_RPATH to remove the RPATH. Normally RPATH is not needed and if the libraries are not installed to the default position the path should be added to LD_LIBRARY_PATH. This keeps the portability of the code and lets the user select the libraries at runtime.

Change the default to not add RPATH to get a standard behavior. If users want to use RPATH they should activate it.

Associated revisions

Revision dcaf0d5b
Added by J. Wienke over 12 years ago

do not force an rpath

fixes #536

History

#1 Updated by J. Wienke over 12 years ago

  • Assignee set to J. Wienke
  • Target version set to rsb-0.10

Sebastian, what is your opinion here? I would agree with Stefan. For the gar-installer we could e.g. add this a default option for cmake on the cmake command line call.

#2 Updated by J. Wienke over 12 years ago

  • Estimated time set to 0.10

#3 Updated by J. Wienke over 12 years ago

  • Status changed from New to In Progress

I will make this the default now. We can revert this if there are strong objections.

#4 Updated by J. Wienke over 12 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

Applied in changeset r2567.

#5 Updated by D. Merejkowsky over 12 years ago

Using something like



      set_target_properties("${name}" 
        PROPERTIES
          INSTALL_RPATH "\$ORIGIN/../lib" 
      )

might help

#6 Updated by J. Moringen over 12 years ago

  • Target version changed from rsb-0.10 to 0.5

Also available in: Atom PDF