mirror of
https://github.com/janet-lang/janet
synced 2024-12-25 07:50:27 +00:00
Don't run ldconfig when installing on osx.
This commit is contained in:
parent
9d94ffe85d
commit
b47b35587d
6
Makefile
6
Makefile
@ -40,8 +40,10 @@ DST_LIBRARY=libdst.so
|
||||
DEBUGGER=gdb
|
||||
|
||||
UNAME:=$(shell uname -s)
|
||||
LDCONFIG:=ldconfig
|
||||
ifeq ($(UNAME), Darwin)
|
||||
# Add other macos/clang flags
|
||||
LDCONFIG:=
|
||||
else
|
||||
CFLAGS:=$(CFLAGS) -rdynamic
|
||||
endif
|
||||
@ -150,12 +152,12 @@ install: $(DST_TARGET)
|
||||
mkdir -p $(INCLUDEDIR)
|
||||
cp $(DST_HEADERS) $(INCLUDEDIR)
|
||||
cp $(DST_LIBRARY) $(LIBDIR)/$(DST_LIBRARY)
|
||||
ldconfig
|
||||
$(LDCONFIG)
|
||||
|
||||
uninstall:
|
||||
rm $(BINDIR)/$(DST_TARGET)
|
||||
rm $(LIBDIR)/$(DST_LIBRARY)
|
||||
rm -rf $(INCLUDEDIR)
|
||||
ldconfig
|
||||
$(LDCONFIG)
|
||||
|
||||
.PHONY: clean install repl debug valgrind test valtest install uninstall
|
||||
|
Loading…
Reference in New Issue
Block a user