mirror of
https://github.com/janet-lang/janet
synced 2024-12-26 08:20: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
|
DEBUGGER=gdb
|
||||||
|
|
||||||
UNAME:=$(shell uname -s)
|
UNAME:=$(shell uname -s)
|
||||||
|
LDCONFIG:=ldconfig
|
||||||
ifeq ($(UNAME), Darwin)
|
ifeq ($(UNAME), Darwin)
|
||||||
# Add other macos/clang flags
|
# Add other macos/clang flags
|
||||||
|
LDCONFIG:=
|
||||||
else
|
else
|
||||||
CFLAGS:=$(CFLAGS) -rdynamic
|
CFLAGS:=$(CFLAGS) -rdynamic
|
||||||
endif
|
endif
|
||||||
@ -150,12 +152,12 @@ install: $(DST_TARGET)
|
|||||||
mkdir -p $(INCLUDEDIR)
|
mkdir -p $(INCLUDEDIR)
|
||||||
cp $(DST_HEADERS) $(INCLUDEDIR)
|
cp $(DST_HEADERS) $(INCLUDEDIR)
|
||||||
cp $(DST_LIBRARY) $(LIBDIR)/$(DST_LIBRARY)
|
cp $(DST_LIBRARY) $(LIBDIR)/$(DST_LIBRARY)
|
||||||
ldconfig
|
$(LDCONFIG)
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm $(BINDIR)/$(DST_TARGET)
|
rm $(BINDIR)/$(DST_TARGET)
|
||||||
rm $(LIBDIR)/$(DST_LIBRARY)
|
rm $(LIBDIR)/$(DST_LIBRARY)
|
||||||
rm -rf $(INCLUDEDIR)
|
rm -rf $(INCLUDEDIR)
|
||||||
ldconfig
|
$(LDCONFIG)
|
||||||
|
|
||||||
.PHONY: clean install repl debug valgrind test valtest install uninstall
|
.PHONY: clean install repl debug valgrind test valtest install uninstall
|
||||||
|
Loading…
Reference in New Issue
Block a user