From: Andy Polyakov Date: Wed, 1 Aug 2007 14:22:36 +0000 (+0000) Subject: Erroneously omitted code from "jumbo framework update." X-Git-Tag: FIPS_098_TEST_3~18 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ef85b85b12e30fc0a04ef164c31cf4b1285f878d;p=oweals%2Fopenssl.git Erroneously omitted code from "jumbo framework update." --- 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)"; \