From: Richard Levitte Date: Wed, 13 Feb 2002 10:15:05 +0000 (+0000) Subject: Make link-shard a little bit more efficient. If there are no X-Git-Tag: OpenSSL-engine-0_9_6c^2^2~25 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5f58d6a5e0e742329a2fa966ddae2e6edfa9db06;p=oweals%2Fopenssl.git Make link-shard a little bit more efficient. If there are no extensions to link together, there's no point looping at all. --- diff --git a/Makefile.org b/Makefile.org index 1ca0b28368..1b2e9e90f8 100644 --- a/Makefile.org +++ b/Makefile.org @@ -243,16 +243,16 @@ clean-shared: done link-shared: - @for i in $(SHLIBDIRS); do \ - prev=lib$$i$(SHLIB_EXT); \ - if [ -n "$(SHARED_LIBS_LINK_EXTS)" ]; then \ - tmp="$(SHARED_LIBS_LINK_EXTS)"; \ + if [ -n "$(SHARED_LIBS_LINK_EXTS)" ]; then \ + tmp="$(SHARED_LIBS_LINK_EXTS)"; \ + @for i in $(SHLIBDIRS); do \ + prev=lib$$i$(SHLIB_EXT); \ for j in $${tmp:-x}; do \ ( set -x; ln -f -s $$prev lib$$i$$j ); \ prev=lib$$i$$j; \ done; \ - fi; \ - done + done; \ + fi build-shared: clean-shared do_$(SHLIB_TARGET) link-shared