From 318747b2708431cc4e60593bb289f802dd3effec Mon Sep 17 00:00:00 2001 From: steve-chavez Date: Sat, 22 Jul 2023 23:53:57 -0500 Subject: [PATCH] fix: pkg-config only finding mpc with sudo After running `make install`, pkg-config only finds mpc with sudo: ``` $ sudo pkg-config --list-all | grep mpc mpc - Library for creating parser combinators $ pkg-config --list-all | grep mpc ``` This is because the Makefile runs `install -d -m644`, which doesn't include permission to access the `/usr/local/lib/pkgconfig` directory. Fix this by changing the created directories mode to 645. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index fe798c5..9affedd 100644 --- a/Makefile +++ b/Makefile @@ -59,9 +59,9 @@ clean: rm -rf -- $(DIST) install: all - install -d -m644 $(DESTDIR)$(PREFIX)/include - install -d -m644 $(DESTDIR)$(PREFIX)/lib/pkgconfig - install -d -m644 $(DESTDIR)$(PREFIX)/share/$(PROJ) + install -d -m645 $(DESTDIR)$(PREFIX)/include + install -d -m645 $(DESTDIR)$(PREFIX)/lib/pkgconfig + install -d -m645 $(DESTDIR)$(PREFIX)/share/$(PROJ) install -m755 -t $(DESTDIR)$(PREFIX)/lib $(DIST)/lib* install -m644 -t $(DESTDIR)$(PREFIX)/share/$(PROJ) $(PROJ).c $(PROJ).h install -m644 $(PROJ).h $(DESTDIR)$(PREFIX)/include/$(PROJ).h