Add support for non-root installs

This commit is contained in:
Bob Polis 2024-09-26 12:55:49 +02:00
parent 83cb340967
commit 93874de922

View File

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