summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-02-25 08:13:50 +0000
committerpeter <peter@FreeBSD.org>2000-02-25 08:13:50 +0000
commit7caf65d2f418bb82e753223fb83f1f4291cdcb22 (patch)
treeb5387e0fa6d722b8f013e31c34c896d1ff4eba0c /crypto
parent153f059ef07d86d58becdb620b6e89fc203c67ea (diff)
downloadFreeBSD-src-7caf65d2f418bb82e753223fb83f1f4291cdcb22.zip
FreeBSD-src-7caf65d2f418bb82e753223fb83f1f4291cdcb22.tar.gz
Don't use the dlopen() stubs if comiling with PIC. This still
needs some more thought for the static case. Should we provide weak error-generating stubs for static binaries if -lrsaref was forgotten?
Diffstat (limited to 'crypto')
-rw-r--r--crypto/openssl/rsaref/rsaref_stubs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/openssl/rsaref/rsaref_stubs.c b/crypto/openssl/rsaref/rsaref_stubs.c
index 3ba5bab..67aa1c2 100644
--- a/crypto/openssl/rsaref/rsaref_stubs.c
+++ b/crypto/openssl/rsaref/rsaref_stubs.c
@@ -37,7 +37,7 @@
*
*/
-#ifndef NO_RSA
+#if !defined(NO_RSA) && defined(PIC)
#include <dlfcn.h>
#include <stdio.h>
@@ -158,4 +158,4 @@ R_RandomUpdate_stub(void *randomStruct,
return 0;
}
-#endif /* NO_RSA */
+#endif /* !NO_RSA && PIC */
OpenPOWER on IntegriCloud