summaryrefslogtreecommitdiffstats
path: root/platform/linuxbsd/detect.py
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2023-04-03 11:46:29 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2023-04-24 14:08:55 +0300
commit628f3b2f7975600dee2ee31fc85ed23d2f34c8ab (patch)
treedc20debec3326ff820d5014b9e26f9f62d83b4aa /platform/linuxbsd/detect.py
parentf178cad04a39bc40e759ef50675606b12bb07fff (diff)
downloadredot-engine-628f3b2f7975600dee2ee31fc85ed23d2f34c8ab.tar.gz
[OS] Implement and expose to scripting APIs `get_memory_info` method instead of old `get_free_static_memory`.
Diffstat (limited to 'platform/linuxbsd/detect.py')
-rw-r--r--platform/linuxbsd/detect.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py
index 0bebd29f89..dadc03685b 100644
--- a/platform/linuxbsd/detect.py
+++ b/platform/linuxbsd/detect.py
@@ -463,6 +463,9 @@ def configure(env: "Environment"):
else:
env.Append(LINKFLAGS=["-T", "platform/linuxbsd/pck_embed.legacy.ld"])
+ if platform.system() == "FreeBSD":
+ env.Append(LINKFLAGS=["-lkvm"])
+
## Cross-compilation
# TODO: Support cross-compilation on architectures other than x86.
host_is_64_bit = sys.maxsize > 2**32