Skip to content

Commit

Permalink
Define RPATH for travis build using Anaconda library.
Browse files Browse the repository at this point in the history
Also avoid copious warnings from Anaconda boost headers.
  • Loading branch information
pavoljuhas committed Oct 16, 2016
1 parent 2593c6a commit 9b0c8ad
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .travis-sconscript.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Customize scons build environment.

Import('env')

import os

# Silence copious warnings from the boost headers.
P = os.environ['MYPREFIX']
env.Prepend(CCFLAGS='-isystem{}/include'.format(P))

# Define path to the shared libraries from Anaconda environment.
L = P + '/lib'
env.Append(LINKFLAGS='-Wl,-rpath,{!r}'.format(L))

# vim: ft=python
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ install:
export MACOSX_DEPLOYMENT_TARGET=10.7;
fi

- $NOMC || export MYPREFIX
- $NOMC || cp .travis-sconscript.local sconscript.local
- scons build=fast prefix="${MYPREFIX}" test_installed=true alltests
- MYALLTESTSFAST=$(ls -t ${PWD}/build/fast*/tests/alltests | head -1)
- scons build=debug lib alltests
Expand Down

0 comments on commit 9b0c8ad

Please sign in to comment.