summaryrefslogtreecommitdiffstats
path: root/Makefile.org
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-02-13 10:15:05 +0000
committerRichard Levitte <levitte@openssl.org>2002-02-13 10:15:05 +0000
commit5f58d6a5e0e742329a2fa966ddae2e6edfa9db06 (patch)
tree2e2bd3f816405c5227632e2f882573d7ab5dc8af /Makefile.org
parentacfe628b6e093e64d1fba5fea1d5f9b3a7d119cc (diff)
Make link-shard a little bit more efficient. If there are no
extensions to link together, there's no point looping at all.
Diffstat (limited to 'Makefile.org')
-rw-r--r--Makefile.org12
1 files changed, 6 insertions, 6 deletions
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