From 21474fbec5d8194af06b9f69d5b70d0dfc67bb15 Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Thu, 26 Sep 2024 12:56:50 +0200 Subject: [PATCH] Add support for non-root installs --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index fdf2e86..1e09687 100644 --- a/Makefile +++ b/Makefile @@ -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)