From ee870a0e7997eab26addf346380cd8a723e8dfcf Mon Sep 17 00:00:00 2001 From: "David E. Wheeler" Date: Tue, 25 Aug 2026 19:38:30 -0400 Subject: [PATCH] No ldconfig for statically-linked libchdb --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8d45fc3..76fc839 100644 --- a/Makefile +++ b/Makefile @@ -132,7 +132,7 @@ libchdb-variables: install-libchdb: $(LIBCHDB_DIR)/lib/libchdb.$(if $(filter $(LIBCHDB_BUILD),static),a,so) $(MKDIR_P) $(DESTDIR)/usr/local/lib $(INSTALL_SHLIB) $< $(DESTDIR)/usr/local/lib - if [ "$$(uname -s)" = "Linux" ]; then ldconfig; fi + if [ "$(LIBCHDB_BUILD)" != "static" ] && [ "$$(uname -s)" = "Linux" ]; then ldconfig; fi uninstall-libchdb: rm -f $(DESTDIR)/usr/local/lib/libchdb.$(if $(filter $(LIBCHDB_BUILD),static),a,so)