Add NetBSD changes
This commit is contained in:
+12
-1
@@ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user