diff --git a/Makefile b/Makefile index 621aedd9..9ab49a3b 100644 --- a/Makefile +++ b/Makefile @@ -640,6 +640,9 @@ else ifeq ($(TARGET_RPI),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 9eb872e7..05ab6682 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__) +#if defined(__APPLE__) || defined(__HAIKU__) // macOS libc has them #include