This commit is contained in:
AloXado320 2021-12-01 00:54:10 -05:00
parent 4e49a42dfc
commit 27bdb616ed
2 changed files with 4 additions and 1 deletions

View file

@ -1157,6 +1157,9 @@ else ifeq ($(TARGET_ANDROID),1)
else ifeq ($(OSX_BUILD),1) else ifeq ($(OSX_BUILD),1)
LDFLAGS := -lm $(BACKEND_LDFLAGS) -no-pie -lpthread LDFLAGS := -lm $(BACKEND_LDFLAGS) -no-pie -lpthread
else ifeq ($(HOST_OS),Haiku)
LDFLAGS := $(BACKEND_LDFLAGS) -no-pie
else else
LDFLAGS := $(BITS) -march=$(TARGET_ARCH) -lm $(BACKEND_LDFLAGS) -lpthread -ldl LDFLAGS := $(BITS) -march=$(TARGET_ARCH) -lm $(BACKEND_LDFLAGS) -lpthread -ldl
ifeq ($(NO_PIE), 1) ifeq ($(NO_PIE), 1)

View file

@ -5,7 +5,7 @@
// old bstring functions that aren't present on some platforms // 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 // macOS libc has them
#include <strings.h> #include <strings.h>