e96beb
--- openssl-0.9.8a/Makefile.org.link-krb5	2005-07-05 07:14:21.000000000 +0200
e96beb
+++ openssl-0.9.8a/Makefile.org	2005-11-07 18:00:08.000000000 +0100
e96beb
@@ -266,7 +266,7 @@
e96beb
 
e96beb
 do_$(SHLIB_TARGET):
e96beb
 	@ set -e; libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
e96beb
-		if [ "${SHLIBDIRS}" = "ssl" -a -n "$(LIBKRB5)" ]; then \
e96beb
+		if [ "$$i" = "ssl" -a -n "$(LIBKRB5)" ]; then \
e96beb
 			libs="$(LIBKRB5) $$libs"; \
e96beb
 		fi; \
e96beb
 		$(CLEARENV) && $(MAKE) -f Makefile.shared -e $(BUILDENV) \