From 4b3641c4ec7c96b0f4a76397f627c641f80d6676 Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Fri, 30 Oct 2026 16:19:51 +0100 Subject: [PATCH] avoid adding module rpath if module has no libraries --- configure/os/CONFIG.Common.UnixCommon | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure/os/CONFIG.Common.UnixCommon b/configure/os/CONFIG.Common.UnixCommon index a6337324d..e06d2c73a 100644 --- a/configure/os/CONFIG.Common.UnixCommon +++ b/configure/os/CONFIG.Common.UnixCommon @@ -55,7 +55,7 @@ SHRLIB_LDLIBS = $(addprefix -l, $($*_LDLIBS) $(LIB_LIBS) $(USR_LIBS)) \ $(LDLIBS) SHRLIB_DEPLIB_DIRS = $(foreach word, \ - $(sort $(INSTALL_LIB)/ $(dir $($*_DEPLIBS) $(SHRLIB_DEPLIBS))), \ + $(sort $(if $(INSTALL_LIBS),$(INSTALL_LIB)/) $(dir $($*_DEPLIBS) $(SHRLIB_DEPLIBS))), \ $(abspath $(word))) SHRLIBDIR_LDFLAGS += $(SHRLIB_DEPLIB_DIRS:%=-L%) @@ -84,7 +84,7 @@ PROD_LDLIBS += $($(firstword $(LDLIBS_STATIC_$(STATIC_BUILD)) \ $(LDLIBS_SHARED_$(SHARED_LIBRARIES)))) PROD_DEPLIB_DIRS = $(foreach word, \ - $(sort $(INSTALL_LIB)/ $(dir $($*_DEPLIBS) $(PROD_DEPLIBS))), \ + $(sort $(if $(INSTALL_LIBS),$(INSTALL_LIB)/) $(dir $($*_DEPLIBS) $(PROD_DEPLIBS))), \ $(abspath $(word))) PRODDIR_LDFLAGS += $(PROD_DEPLIB_DIRS:%=-L%)