Index: SConstruct |
diff --git a/SConstruct b/SConstruct |
index f9c33caae5d9efb163af6582cbb40a584e06ea3d..3f129079cb508c437df1138b353fa272a835d27d 100644 |
--- a/SConstruct |
+++ b/SConstruct |
@@ -129,6 +129,10 @@ LIBRARY_FLAGS = { |
'LIBPATH' : ['/usr/local/lib'], |
'CCFLAGS': ['-ansi'], |
}, |
+ 'os:netbsd': { |
+ 'CPPPATH' : ['/usr/pkg/include'], |
+ 'LIBPATH' : ['/usr/pkg/lib'], |
+ }, |
'os:win32': { |
'CCFLAGS': ['-DWIN32'], |
'CXXFLAGS': ['-DWIN32'], |
@@ -364,6 +368,9 @@ MKSNAPSHOT_EXTRA_FLAGS = { |
'os:win32': { |
'LIBS': ['winmm', 'ws2_32'], |
}, |
+ 'os:netbsd': { |
+ 'LIBS': ['execinfo', 'pthread'] |
+ }, |
'compress_startup_data:bz2': { |
'os:linux': { |
'LIBS': ['bz2'] |
@@ -428,6 +435,9 @@ CCTEST_EXTRA_FLAGS = { |
'os:win32': { |
'LIBS': ['winmm', 'ws2_32'] |
}, |
+ 'os:netbsd': { |
+ 'LIBS': ['execinfo', 'pthread'] |
+ }, |
'arch:arm': { |
'LINKFLAGS': ARM_LINK_FLAGS |
}, |
@@ -487,6 +497,10 @@ SAMPLE_FLAGS = { |
'os:win32': { |
'LIBS': ['winmm', 'ws2_32'] |
}, |
+ 'os:netbsd': { |
+ 'LIBPATH' : ['/usr/pkg/lib'], |
+ 'LIBS': ['execinfo', 'pthread'] |
+ }, |
'arch:arm': { |
'LINKFLAGS': ARM_LINK_FLAGS, |
'armeabi:soft' : { |
@@ -818,6 +832,9 @@ D8_FLAGS = { |
'os:win32': { |
'LIBS': ['winmm', 'ws2_32'], |
}, |
+ 'os:netbsd': { |
+ 'LIBS': ['pthread'], |
+ }, |
'arch:arm': { |
'LINKFLAGS': ARM_LINK_FLAGS |
}, |
@@ -951,7 +968,7 @@ PLATFORM_OPTIONS = { |
'help': 'the architecture to build for' |
}, |
'os': { |
- 'values': ['freebsd', 'linux', 'macos', 'win32', 'openbsd', 'solaris', 'cygwin'], |
+ 'values': ['freebsd', 'linux', 'macos', 'win32', 'openbsd', 'solaris', 'cygwin', 'netbsd'], |
'guess': GuessOS, |
'help': 'the os to build for' |
}, |