Skip to content

Commit 2322087

Browse files
committed
CI: fix linking in test build with Anaconda c++
For some reason Anaconda linker on Linux needs `-rpath-link` in addition to `-rpath` to resolve secondary dependencies at link time.
1 parent 1c4ebe3 commit 2322087

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: .travis-sconscript.local

+2
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,7 @@ env.Prepend(CCFLAGS=['-isystem{}/include'.format(P)])
2828
L = P + '/lib'
2929
env.Append(LIBPATH=L)
3030
env.Append(LINKFLAGS='-Wl,-rpath,{!r}'.format(L))
31+
if env['PLATFORM'] == 'posix':
32+
env.Append(LINKFLAGS='-Wl,-rpath-link,{!r}'.format(L))
3133

3234
# vim: ft=python

0 commit comments

Comments
 (0)