From ef85b85b12e30fc0a04ef164c31cf4b1285f878d Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Wed, 1 Aug 2007 14:22:36 +0000 Subject: [PATCH] Erroneously omitted code from "jumbo framework update." --- Makefile.shared | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile.shared b/Makefile.shared index 681cc193bf..64e51333a1 100644 --- a/Makefile.shared +++ b/Makefile.shared @@ -200,8 +200,10 @@ link_app.bsd: # to use native NSModule(3) API and refers to dlfcn as termporary hack. link_o.darwin: @ $(CALC_VERSIONS); \ - SHLIB=lib$(LIBNAME); \ - SHLIB_SUFFIX=.so; \ + SHLIB=`expr "$$THIS" : '.*/\([^/\.]*\)\.'`; \ + SHLIB=$${SHLIB:-lib$(LIBNAME)}; \ + SHLIB_SUFFIX=`expr "$$THIS" : '.*\(\.[^\.]*\)$$'`; \ + SHLIB_SUFFIX=$${SHLIB_SUFFIX:-.so}; \ ALLSYMSFLAGS='-all_load'; \ NOALLSYMSFLAGS=''; \ SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS)"; \ -- 2.25.1