diff --git a/Makefile b/Makefile index 60a3a5b..896c7d7 100644 --- a/Makefile +++ b/Makefile @@ -1157,6 +1157,9 @@ else ifeq ($(TARGET_ANDROID),1) else ifeq ($(OSX_BUILD),1) LDFLAGS := -lm $(BACKEND_LDFLAGS) -no-pie -lpthread +else ifeq ($(HOST_OS),Haiku) + LDFLAGS := $(BACKEND_LDFLAGS) -no-pie + else LDFLAGS := $(BITS) -march=$(TARGET_ARCH) -lm $(BACKEND_LDFLAGS) -lpthread -ldl ifeq ($(NO_PIE), 1) diff --git a/include/PR/os_libc.h b/include/PR/os_libc.h index f01f0ef..544ab1a 100644 --- a/include/PR/os_libc.h +++ b/include/PR/os_libc.h @@ -5,7 +5,7 @@ // old bstring functions that aren't present on some platforms -#if defined(__APPLE__) || defined(__ANDROID__) +#if defined(__APPLE__) || defined(__ANDROID__) || defined(__HAIKU__) // macOS libc has them #include