blob: a53e94f7fc55795482bd322cc12b63bc17c61882 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
$NetBSD: patch-src_third__party_wiredtiger_SConscript,v 1.2 2021/04/09 14:30:09 tnn Exp $
* Add NetBSD case.
--- src/third_party/wiredtiger/SConscript.orig 2020-01-08 16:30:41.000000000 +0000
+++ src/third_party/wiredtiger/SConscript
@@ -62,8 +62,12 @@ elif env.TargetOSIs('solaris'):
# For an explanation of __EXTENSIONS__,
# see http://docs.oracle.com/cd/E19253-01/816-5175/standards-5/index.html
env.Append(CPPDEFINES=["__EXTENSIONS__"])
+elif env.TargetOSIs('dragonfly'):
+ env.Append(CPPPATH=["build_dragonfly"])
elif env.TargetOSIs('freebsd'):
env.Append(CPPPATH=["build_freebsd"])
+elif env.TargetOSIs('netbsd'):
+ env.Append(CPPPATH=["build_netbsd"])
elif env.TargetOSIs('openbsd'):
env.Append(CPPPATH=["build_openbsd"])
elif env.TargetOSIs('linux'):
@@ -93,7 +97,7 @@ if (VERSION_MAJOR == None or
VERSION_MINOR == None or
VERSION_PATCH == None or
VERSION_STRING == None):
- print "Failed to find version variables in " + version_file
+ print("Failed to find version variables in " + version_file)
Exit(1)
wiredtiger_includes = """
@@ -169,7 +173,7 @@ if useSnappy:
# If not available at runtime, we fall back to software in some cases.
#
# On zSeries we may disable because SLES 11 kernel doe not support the instructions.
-if not (env['TARGET_ARCH'] == 's390x' and get_option("use-s390x-crc32") == "off"):
+if not (env['TARGET_ARCH'] == 's390x' and get_option("use-s390x-crc32") == "off") and not (env.TargetOSIs('netbsd') and env['TARGET_ARCH'] == 'aarch64'):
env.Append(CPPDEFINES=["HAVE_CRC32_HARDWARE"])
wtlib = env.Library(
|