Changeset 2988


Ignore:
Timestamp:
Apr 10, 2020 7:05:25 PM (3 months ago)
Author:
unxusr
Message:

change rpath of libraries with chrpath

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.travis.yml

    r2978 r2988  
    2929            - libcholmod1.7.1
    3030            - libsuitesparse-dev
     31            - chrpath
    3132      install:
    3233        - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 90
     
    5051            - libcholmod1.7.1
    5152            - libsuitesparse-dev
     53            - chrpath
    5254      install:
    5355        - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 90
     
    117119      cp /usr/lib/libamd.so.2.2.0 lib/
    118120      cp /usr/lib/libcolamd.so.2.7.1 lib/
     121   
     122      for libfile in lib/*.so*;
     123      do
     124        chrpath -r ./ $libfile
     125      done
    119126
    120       # CBC Launcher script
    121       mv bin/cbc bin/cbc.bin
    122       echo "#! /bin/sh"
    123       echo "# Wrapper to launch CBC and set the library path in Linux" > bin/cbc
    124       echo "SCRIPTPATH=\"\$( cd \"\$(dirname \"\$0\")\" >/dev/null 2>&1 ; pwd -P )\"" >> bin/cbc
    125       echo "LIB_PATH=\$(echo \$SCRIPTPATH | sed -e 's/\/bin\$/\/lib/g')" >> bin/cbc
    126       echo "LIB_PATH=\$(echo \$LIB_PATH | sed -e 's/\/bin\/\$/\/lib/g')" >> bin/cbc
    127       echo "OLD_LP=\$LD_LIBRARY_PATH" >> bin/cbc
    128       echo "export LD_LIBRARY_PATH=\$LIB_PATH:\$LD_LIBRARY_PATH" >> bin/cbc
    129       echo "\${SCRIPTPATH}/cbc.bin \$@" >> bin/cbc
    130       echo "export LD_LIBRARY_PATH=\$OLD_LP" >> bin/cbc
    131       echo "exit \$?" >> bin/cbc
    132       chmod a+rx bin/cbc
    133       # CLP Launcher script
    134       mv bin/clp bin/clp.bin
    135       echo "#! /bin/sh"
    136       echo "# Wrapper to launch CLP and set the library path in Linux" > bin/clp
    137       echo "SCRIPTPATH=\"\$( cd \"\$(dirname \"\$0\")\" >/dev/null 2>&1 ; pwd -P )\"" >> bin/clp
    138       echo "LIB_PATH=\$(echo \$SCRIPTPATH | sed -e 's/\/bin\$/\/lib/g')" >> bin/clp
    139       echo "LIB_PATH=\$(echo \$LIB_PATH | sed -e 's/\/bin\/\$/\/lib/g')" >> bin/clp
    140       echo "OLD_LP=\$LD_LIBRARY_PATH" >> bin/clp
    141       echo "export LD_LIBRARY_PATH=\$LIB_PATH:\$LD_LIBRARY_PATH" >> bin/clp
    142       echo "\${SCRIPTPATH}/clp.bin \$@" >> bin/clp
    143       echo "export LD_LIBRARY_PATH=\$OLD_LP" >> bin/clp
    144       echo "exit \$?" >> bin/clp
    145       chmod a+rx bin/clp
     127      chrpath -r ../lib/ bin/cbc
     128      chrpath -r ../lib/ bin/clp
     129      chrpath -r ../lib/ bin/glpsol
    146130    fi
    147131  - tar -czvf $TGZ_FILE lib/* bin/* include/* share/* README.md LICENSE AUTHORS
Note: See TracChangeset for help on using the changeset viewer.