Add NetBSD changes

This commit is contained in:
Nils O. Selåsdal
2012-11-06 22:28:27 +01:00
parent f6fb7595d3
commit 531abb1b57
+12 -1
View File
@@ -1,4 +1,5 @@
import os import platform
Import('env', 'build_type', 'prefix', 'version_info', 'test_xml') Import('env', 'build_type', 'prefix', 'version_info', 'test_xml')
test_env = env.Clone() test_env = env.Clone()
@@ -6,6 +7,16 @@ test_env.Append(LIBPATH = ['#build/src']);
test_env.Append(CPPPATH = ['#src']) test_env.Append(CPPPATH = ['#src'])
test_env.Append(LIBS = ['ucore_' + build_type, 'check']) 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') tests = test_env.Glob('test_*.c')
test_executable = 'test_runner' test_executable = 'test_runner'