1
0
mirror of https://github.com/janet-lang/janet synced 2025-01-11 08:00:27 +00:00

Merge pull request #168 from Crestwave/haiku

Fix installation on Haiku
This commit is contained in:
Calvin Rose 2019-10-02 13:54:03 -04:00 committed by GitHub
commit 841b58042f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,17 +24,17 @@
PREFIX?=/usr/local PREFIX?=/usr/local
INCLUDEDIR=$(PREFIX)/include INCLUDEDIR?=$(PREFIX)/include
BINDIR=$(PREFIX)/bin BINDIR?=$(PREFIX)/bin
LIBDIR=$(PREFIX)/lib LIBDIR?=$(PREFIX)/lib
JANET_BUILD?="\"$(shell git log --pretty=format:'%h' -n 1)\"" JANET_BUILD?="\"$(shell git log --pretty=format:'%h' -n 1)\""
CLIBS=-lm CLIBS=-lm
JANET_TARGET=build/janet JANET_TARGET=build/janet
JANET_LIBRARY=build/libjanet.so JANET_LIBRARY=build/libjanet.so
JANET_STATIC_LIBRARY=build/libjanet.a JANET_STATIC_LIBRARY=build/libjanet.a
JANET_PATH?=$(PREFIX)/lib/janet JANET_PATH?=$(LIBDIR)/janet
MANPATH?=$(PREFIX)/share/man/man1/ MANPATH?=$(PREFIX)/share/man/man1/
PKG_CONFIG_PATH?=$(PREFIX)/lib/pkgconfig PKG_CONFIG_PATH?=$(LIBDIR)/pkgconfig
DEBUGGER=gdb DEBUGGER=gdb
CFLAGS=-std=c99 -Wall -Wextra -Isrc/include -Isrc/conf -fpic -O2 -fvisibility=hidden \ CFLAGS=-std=c99 -Wall -Wextra -Isrc/include -Isrc/conf -fpic -O2 -fvisibility=hidden \
@ -54,6 +54,7 @@ else ifeq ($(UNAME), Linux)
endif endif
# For other unix likes, add flags here! # For other unix likes, add flags here!
ifeq ($(UNAME), Haiku) ifeq ($(UNAME), Haiku)
LDCONFIG:=
LDFLAGS=-Wl,--export-dynamic LDFLAGS=-Wl,--export-dynamic
endif endif