Call ldconfig in a subshell - libgrapheme - unicode string library | |
git clone git://git.suckless.org/libgrapheme | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit ef3e52a7f560f66df8ed1e2487872a1e62c5cedb | |
parent 28064303528f2604c5bf932b1478eb9f7c7ffc04 | |
Author: Laslo Hunhold <[email protected]> | |
Date: Sat, 8 Oct 2022 11:22:18 +0200 | |
Call ldconfig in a subshell | |
This prevents a syntax error when LDCONFIG is unset. | |
Signed-off-by: Laslo Hunhold <[email protected]> | |
Diffstat: | |
M Makefile | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/Makefile b/Makefile | |
@@ -288,7 +288,7 @@ install: all | |
if [ "$(SOSYMLINK)" = "true" ]; then ln -sf "$(SONAME)" "$(DESTDIR)$(L… | |
if [ "$(SOSYMLINK)" = "true" ]; then ln -sf "$(SONAME)" "$(DESTDIR)$(L… | |
cp -f grapheme.h "$(DESTDIR)$(INCPREFIX)" | |
- if ! [ -z "$(LDCONFIG)" ]; then $(LDCONFIG); fi | |
+ if ! [ -z "$(LDCONFIG)" ]; then $(SHELL) -c "$(LDCONFIG)"; fi | |
uninstall: | |
for m in $(MAN3:=.3); do rm -f "$(DESTDIR)$(MANPREFIX)/man3/`basename … | |
@@ -299,7 +299,7 @@ uninstall: | |
if [ "$(SOSYMLINK)" = "true" ]; then rm -f "$(DESTDIR)$(LIBPREFIX)/lib… | |
if [ "$(SOSYMLINK)" = "true" ]; then rm -f "$(DESTDIR)$(LIBPREFIX)/lib… | |
rm -f "$(DESTDIR)$(INCPREFIX)/grapheme.h" | |
- if ! [ -z "$(LDCONFIG)" ]; then $(LDCONFIG); fi | |
+ if ! [ -z "$(LDCONFIG)" ]; then $(SHELL) -c "$(LDCONFIG)"; fi | |
clean: | |
rm -f $(BENCHMARK:=.o) benchmark/util.o $(BENCHMARK) $(GEN:=.h) $(GEN:… |