Add support for non-root installs

This commit is contained in:
Bob Polis 2024-09-26 12:56:03 +02:00
parent 865773ee33
commit 7b168b4016

View File

@ -132,7 +132,11 @@ ifeq ($(UNAME_S),Darwin)
cd $(LIBDIR) && ln -sf $(REALNAME) $(SONAME)
endif
ifeq ($(UNAME_S),Linux)
ifeq ($(UID), 0)
ldconfig
else
cd $(LIBDIR) && ln -sf $(REALNAME) $(SONAME)
endif
cd $(LIBDIR) && ln -sf $(SONAME) $(LINKERNAME)
endif
ifeq ($(UNAME_S),OpenBSD)