summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2004-11-05 09:12:10 +0000
committerRichard Levitte <levitte@openssl.org>2004-11-05 09:12:10 +0000
commit8de69cf2c657b488ef7801ca80f9fd3eb7320759 (patch)
treed8c3e3cf0a64ee463f8a9d303e8606be76cfa67c /test
parenta2ac429da2f90616d1465dac704eb1e91d2be722 (diff)
Make sure LD_PRELOAD is only set when we build shared libraries (and
therefore link with them). Add LD_PRELOAD setting code where it was still missing. PR: 966
Diffstat (limited to 'test')
-rw-r--r--test/Makefile.ssl7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/Makefile.ssl b/test/Makefile.ssl
index 1dc1edf997..09110f3caa 100644
--- a/test/Makefile.ssl
+++ b/test/Makefile.ssl
@@ -136,9 +136,12 @@ SET_SO_PATHS=OSSL_LIBPATH="`cd ..; pwd`"; \
DYLD_LIBRARY_PATH="$$OSSL_LIBPATH:$$DYLD_LIBRARY_PATH"; \
SHLIB_PATH="$$OSSL_LIBPATH:$$SHLIB_PATH"; \
LIBPATH="$$OSSL_LIBPATH:$$LIBPATH"; \
- LD_PRELOAD="$$OSSL_LIBPATH/libssl.so $$OSSL_LIBPATH/libcrypto.so"; \
if [ "$(PLATFORM)" = "Cygwin" ]; then PATH="$${LIBPATH}:$$PATH"; fi; \
- export LD_LIBRARY_PATH DYLD_LIBRARY_PATH SHLIB_PATH LIBPATH PATH LD_PRELOAD
+ export LD_LIBRARY_PATH DYLD_LIBRARY_PATH SHLIB_PATH LIBPATH PATH; \
+ if [ -n "$(SHARED_LIBS)" ]; then \
+ LD_PRELOAD="$$OSSL_LIBPATH/libssl.so $$OSSL_LIBPATH/libcrypto.so"; \
+ export LD_PRELOAD; \
+ fi
alltests: \
test_des test_idea test_sha test_md4 test_md5 test_hmac \