Changeset 0463dc72 in tol


Ignore:
Timestamp:
Jan 7, 2016, 12:46:50 PM (11 years ago)
Author:
Pedro Gea <pgea@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
f584d30
Parents:
1bebe88
Message:

Refs #1860
Se incorpora un RPATH a los binarios en Linux para que localicen las librerías sin necesidad de ejecutar un script estableciendo LD_LIBRARY_PATH.

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@7171 be4846ae-f051-483a-831f-b64e7d08527f

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • rtol/source/CMakeLists.txt

    r1bebe88 r0463dc72  
    88message( STATUS "Using RINSIDE_INCLUDE_DIRS = ${RINSIDE_INCLUDE_DIRS}" )
    99
    10 SET(CMAKE_INSTALL_RPATH "$ORIGIN")
    11 
     10if( UNIX )
     11  SET(CMAKE_INSTALL_RPATH "$ORIGIN")
     12endif( UNIX )
    1213add_library( tolRlink SHARED tolRlink.cpp )
    1314
  • tol/CMakeLists.txt

    r1bebe88 r0463dc72  
    423423#  endif( )
    424424endforeach( )
     425if( UNIX )
     426  SET(CMAKE_INSTALL_RPATH "$ORIGIN")
     427endif( UNIX )
    425428add_library( tol SHARED ${TOL_SUBLIBRARIES} )
    426429if( WIN32 )
    … …  
    434437  ${PLATFORM_LIBRARIES} ${LAPACK_LIBRARIES} )
    435438
     439if( UNIX )
     440  SET(CMAKE_INSTALL_RPATH "$ORIGIN/../lib")
     441endif( UNIX )
    436442add_executable( tolcon tol.cpp )
    437443target_link_libraries( tolcon tol )
  • tolbase/generic/CMakeLists.txt

    r1bebe88 r0463dc72  
    2222endif(MINGW)
    2323
     24if( UNIX )
     25  SET(CMAKE_INSTALL_RPATH "$ORIGIN/../lib")
     26endif( UNIX )
    2427add_executable( tolbase tolbase.c ${RES_FILES})
    2528
  • toltcl/generic/CMakeLists.txt

    r1bebe88 r0463dc72  
    99message( STATUS "Using TCL_LIBRARY = ${TCL_LIBRARY}" )
    1010
     11if( UNIX )
     12  SET(CMAKE_INSTALL_RPATH "$ORIGIN/..")
     13endif( UNIX )
    1114add_library( toltcl SHARED
    1215  crash.c toltcl.c pool.cpp tclutils.cpp tolaccess.cpp tolsergrp.cpp
    … …  
    2730endif( WIN32 )
    2831
     32if( UNIX )
     33  SET(CMAKE_INSTALL_RPATH "$ORIGIN/../lib")
     34endif( UNIX )
    2935add_executable( tolsh tolsh.c )
    3036if( WIN32 )
Note: See TracChangeset for help on using the changeset viewer.