mirror of
https://github.com/janet-lang/janet
synced 2024-11-24 17:27:18 +00:00
Address #160: Use ldconfig alternative on macos.
update_dyld_shared_cache seems to work on macos.
This commit is contained in:
parent
f2ba91899f
commit
908a3b6f5c
6
Makefile
6
Makefile
@ -41,10 +41,14 @@ CFLAGS=-std=c99 -Wall -Wextra -Isrc/include -Isrc/conf -fpic -O2 -fvisibility=hi
|
|||||||
-DJANET_BUILD=$(JANET_BUILD)
|
-DJANET_BUILD=$(JANET_BUILD)
|
||||||
LDFLAGS=-rdynamic
|
LDFLAGS=-rdynamic
|
||||||
|
|
||||||
|
# For installation
|
||||||
|
LDCONFIG:=ldconfig
|
||||||
|
|
||||||
# Check OS
|
# Check OS
|
||||||
UNAME:=$(shell uname -s)
|
UNAME:=$(shell uname -s)
|
||||||
ifeq ($(UNAME), Darwin)
|
ifeq ($(UNAME), Darwin)
|
||||||
CLIBS:=$(CLIBS) -ldl
|
CLIBS:=$(CLIBS) -ldl
|
||||||
|
LDCONFIG:=update_dyld_shared_cache
|
||||||
else ifeq ($(UNAME), Linux)
|
else ifeq ($(UNAME), Linux)
|
||||||
CLIBS:=$(CLIBS) -lrt -ldl
|
CLIBS:=$(CLIBS) -lrt -ldl
|
||||||
endif
|
endif
|
||||||
@ -307,7 +311,7 @@ install: $(JANET_TARGET) build/janet.pc
|
|||||||
cp jpm.1 '$(MANPATH)'
|
cp jpm.1 '$(MANPATH)'
|
||||||
mkdir -p '$(PKG_CONFIG_PATH)'
|
mkdir -p '$(PKG_CONFIG_PATH)'
|
||||||
cp build/janet.pc '$(PKG_CONFIG_PATH)/janet.pc'
|
cp build/janet.pc '$(PKG_CONFIG_PATH)/janet.pc'
|
||||||
-ldconfig $(LIBDIR)
|
-$(LDCONFIG) $(LIBDIR)
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
-rm '$(BINDIR)/janet'
|
-rm '$(BINDIR)/janet'
|
||||||
|
Loading…
Reference in New Issue
Block a user