Skip to content
Snippets Groups Projects
Commit 0a7c541e authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Fix for travis

for some reason clang stopped working with LD_LIBRARY_PATH was set to
a blank variable. Now the -rpath stuff is only used when LD_LIBRARY_PATH is set
parent c3b95dd1
No related branches found
No related tags found
No related merge requests found
......@@ -39,12 +39,15 @@ install:
- test "$LAPACK" == yes && sudo apt-get install libatlas-base-dev || true
- test "$ALMOST" == yes && ./.travis.install.almost || true
- test "$ALMOST" == yes && ENALMOST="--enable-almost" || true
- test "$ALMOST" == yes && PLUMED_CPPFLAGS="$INCLUDE -I/usr/local/include -I/usr/local/include/almost" || true
# moreover, we hardcode path to dynamic library, required for xdrfile to link properly
# I do it only when LD_LIBRARY_PATH is non blank, since otherwise clang gives problems
- test -n "$LD_LIBRARY_PATH" && PLUMED_LDFLAGS="-Wl,-rpath,$LD_LIBRARY_PATH" || true
script:
# we set all the optional modules on
- touch src/crystallization.on src/manyrestraints.on
# we have to pass the full path since on travis machines sudo does not have compilers in the path
# moreover, we hardcode path to dynamic library, required for xdrfile to link properly
- ./configure CXX=$(which $PLUMED_CXX) CC=$(which $PLUMED_CC) CXXFLAGS="$PLUMED_CXXFLAGS" LDFLAGS="-Wl,-rpath,$LD_LIBRARY_PATH" CPPFLAGS="$INCLUDE -I/usr/local/include -I/usr/local/include/almost" $ENALMOST
- ./configure CXX=$(which $PLUMED_CXX) CC=$(which $PLUMED_CC) CXXFLAGS="$PLUMED_CXXFLAGS" LDFLAGS="$PLUMED_LDFLAGS" CPPFLAGS="$PLUMED_CPPFLAGS" $ENALMOST
- make -j 2
# we install plumed so that it is in the path
- sudo make install
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment