1
0
mirror of https://github.com/janet-lang/janet synced 2024-06-24 06:03:17 +00:00

Address #160: Use ldconfig alternative on macos.

update_dyld_shared_cache seems to work on macos.
This commit is contained in:
Calvin Rose 2019-09-18 12:20:59 -05:00
parent f2ba91899f
commit 908a3b6f5c

View File

@ -41,10 +41,14 @@ CFLAGS=-std=c99 -Wall -Wextra -Isrc/include -Isrc/conf -fpic -O2 -fvisibility=hi
-DJANET_BUILD=$(JANET_BUILD)
LDFLAGS=-rdynamic
# For installation
LDCONFIG:=ldconfig
# Check OS
UNAME:=$(shell uname -s)
ifeq ($(UNAME), Darwin)
CLIBS:=$(CLIBS) -ldl
LDCONFIG:=update_dyld_shared_cache
else ifeq ($(UNAME), Linux)
CLIBS:=$(CLIBS) -lrt -ldl
endif
@ -307,7 +311,7 @@ install: $(JANET_TARGET) build/janet.pc
cp jpm.1 '$(MANPATH)'
mkdir -p '$(PKG_CONFIG_PATH)'
cp build/janet.pc '$(PKG_CONFIG_PATH)/janet.pc'
-ldconfig $(LIBDIR)
-$(LDCONFIG) $(LIBDIR)
uninstall:
-rm '$(BINDIR)/janet'