From 531abb1b576ad97d0e8e09ba4fe021444819d4f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20O=2E=20Sel=C3=A5sdal?= Date: Tue, 6 Nov 2012 22:28:27 +0100 Subject: [PATCH] Add NetBSD changes --- test/SConscript | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/test/SConscript b/test/SConscript index 037e1e6..21c3550 100644 --- a/test/SConscript +++ b/test/SConscript @@ -1,4 +1,5 @@ -import os +import platform + Import('env', 'build_type', 'prefix', 'version_info', 'test_xml') test_env = env.Clone() @@ -6,6 +7,16 @@ test_env.Append(LIBPATH = ['#build/src']); test_env.Append(CPPPATH = ['#src']) test_env.Append(LIBS = ['ucore_' + build_type, 'check']) +system = platform.system() + +#NetBSD needs /usr/pkg/... +if 'netbsd' in system.lower(): + test_env.Append(LIBPATH = ['/usr/pkg/lib']) + test_env.Append(LINKFLAGS = ['-Wl,-rpath,/usr/pkg/lib']) + test_env.Append(CPPPATH = ['/usr/pkg/include']) + + + tests = test_env.Glob('test_*.c') test_executable = 'test_runner'