diff options
| author | Slendi <slendi@socopon.com> | 2024-02-15 15:51:28 +0200 |
|---|---|---|
| committer | Slendi <slendi@socopon.com> | 2024-02-15 15:51:28 +0200 |
| commit | c178f7199d7070c5481c5f0f3077f8dcbfa90226 (patch) | |
| tree | fe181ee6187ca406fb8d5ed5ed55c3ae13ae840b /build_odin.sh | |
| parent | c5c2a4d09d98f0d3b6263e204785553e47b83395 (diff) | |
Get Odin to compile on Haiku
This patch makes Odin to compile on Haiku which is a good first step.
Now, all that's needed to do is to figure out how to do futexes, which
I am blaming for the program crashing.
Diffstat (limited to 'build_odin.sh')
| -rwxr-xr-x | build_odin.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/build_odin.sh b/build_odin.sh index 589aeb550..0d7750ffa 100755 --- a/build_odin.sh +++ b/build_odin.sh @@ -83,6 +83,11 @@ OpenBSD) LDFLAGS="$LDFLAGS -liconv" LDFLAGS="$LDFLAGS $($LLVM_CONFIG --libs core native --system-libs)" ;; +Haiku) + CXXFLAGS="$CXXFLAGS $($LLVM_CONFIG --cxxflags --ldflags) -I/system/develop/headers/private/shared -I/system/develop/headers/private/kernel" + LDFLAGS="$LDFLAGS -liconv" + LDFLAGS="$LDFLAGS $($LLVM_CONFIG --libs core native --system-libs)" + ;; *) error "Platform \"$OS_NAME\" unsupported" ;; |