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
This commit is contained in:
Richard Levitte
2004-11-05 09:12:18 +00:00
parent a2617f727d
commit 17f847af21
3 changed files with 17 additions and 2 deletions

View File

@@ -159,6 +159,10 @@ $(EXE): progs.h $(E_OBJ) $(PROGRAM).o $(DLIBCRYPTO) $(DLIBSSL)
LIBPATH="`pwd`:$$LIBPATH"; \
if [ "$(PLATFORM)" = "Cygwin" ]; then PATH="`pwd`:$$PATH"; fi; \
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; \
$(PERL) tools/c_rehash certs)
progs.h: progs.pl