From 93364c06d6e648888cbe0fedadd127608bf85f59 Mon Sep 17 00:00:00 2001 From: "Janet B. Anderson" Date: Fri, 12 Jan 2001 23:19:14 +0000 Subject: [PATCH] Added SHRLIB dependancy definitions --- configure/os/CONFIG.Common.UnixCommon | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure/os/CONFIG.Common.UnixCommon b/configure/os/CONFIG.Common.UnixCommon index 8d27970f3..c6515db84 100644 --- a/configure/os/CONFIG.Common.UnixCommon +++ b/configure/os/CONFIG.Common.UnixCommon @@ -33,10 +33,17 @@ LIBNAME = $(BUILD_LIBRARY:%=$(LIB_PREFIX)%$(LIB_SUFFIX)) SHRLIBNAME = $(BUILD_LIBRARY:%=$(LIB_PREFIX)%$(SHRLIB_SUFFIX)) #------------------------------------------------------- +# shrlib: dependancy definitions +SHRLIB_DEPLIBS = $(foreach lib,$(SHRLIB_LIBS),$(firstword $(wildcard \ +$($(lib)_DIR)/$(LIB_PREFIX)$(lib).*))) + # Shared library definitions SHRLIB_LDFLAGS = $($(ANSI)_SHRLIB_LDFLAGS_$(strip $(SHARED_LIBRARIES))) SHRLIB_LDLIBS = $($*_LIBS:%=-l%) +SHRLIB_DEPLIB_DIRS = $(dir $($*_DEPLIBS)) $(dir $(SHRLIB_DEPLIBS)) +SHRLIB_LDFLAGS += $(sort $(SHRLIB_DEPLIB_DIRS:%=-L%)) + #-------------------------------------------------- # Prod: dependancy definitions PROD_DEPLIBS = $(foreach lib,$(PROD_LIBS) $(USR_LIBS),$(firstword $(wildcard \