1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-26 00:10:27 +00:00

Add support for Haiku

This commit is contained in:
Crestwave 2019-05-14 10:41:33 +00:00
parent 232ea22dc5
commit 3b6a51df24
2 changed files with 4 additions and 0 deletions

View File

@ -47,6 +47,9 @@ else ifeq ($(UNAME), Linux)
CLIBS:=$(CLIBS) -lrt -ldl CLIBS:=$(CLIBS) -lrt -ldl
endif endif
# For other unix likes, add flags here! # For other unix likes, add flags here!
ifeq ($(UNAME),Haiku)
LDFLAGS=-Wl,--export-dynamic
endif
$(shell mkdir -p build/core build/mainclient build/webclient build/boot) $(shell mkdir -p build/core build/mainclient build/webclient build/boot)
all: $(JANET_TARGET) $(JANET_LIBRARY) all: $(JANET_TARGET) $(JANET_LIBRARY)

View File

@ -51,6 +51,7 @@ extern "C" {
|| defined(__FreeBSD__) || defined(__DragonFly__) \ || defined(__FreeBSD__) || defined(__DragonFly__) \
|| defined(__FreeBSD_kernel__) \ || defined(__FreeBSD_kernel__) \
|| defined(__GNU__) /* GNU/Hurd */ \ || defined(__GNU__) /* GNU/Hurd */ \
|| defined(__HAIKU__) \
|| defined(__linux__) \ || defined(__linux__) \
|| defined(__NetBSD__) \ || defined(__NetBSD__) \
|| defined(__OpenBSD__) \ || defined(__OpenBSD__) \