mirror of
https://github.com/boostorg/python.git
synced 2026-01-24 06:02:14 +00:00
Switch to use RPATH in test and example builds (#5).
This commit is contained in:
@@ -6,6 +6,8 @@ import os
|
||||
example_env = env.Clone()
|
||||
lib_path = os.path.abspath(os.path.join("..", "src"))
|
||||
example_env.Append(LIBPATH=[lib_path])
|
||||
example_env.Append(RPATH=[lib_path])
|
||||
example_env.Append(LINKFLAGS = ["$__RPATH"]) # workaround for SCons bug #1644
|
||||
example_env.Append(LIBS=["boost_numpy"])
|
||||
|
||||
example = []
|
||||
|
||||
@@ -6,9 +6,9 @@ import sys
|
||||
|
||||
test_env = env.Clone()
|
||||
lib_path = os.path.abspath(os.path.join("..", "src"))
|
||||
test_env.AppendENVPath("PYTHONPATH", os.path.abspath("."))
|
||||
test_env.AppendENVPath("LD_LIBRARY_PATH", lib_path)
|
||||
test_env.Append(LIBPATH=[lib_path])
|
||||
test_env.Append(RPATH=[lib_path])
|
||||
test_env.Append(LINKFLAGS = ["$__RPATH"]) # workaround for SCons bug #1644t
|
||||
test_env.Append(LIBS=["boost_numpy"])
|
||||
|
||||
test = []
|
||||
|
||||
Reference in New Issue
Block a user