2
0
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:
Jim Bosch
2012-05-13 17:50:15 -04:00
parent 28a9fab278
commit a35cbd1af1
2 changed files with 4 additions and 2 deletions

View File

@@ -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 = []

View File

@@ -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 = []