summaryrefslogtreecommitdiffstats
path: root/secure
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-03-02 05:22:46 +0000
committerpeter <peter@FreeBSD.org>2000-03-02 05:22:46 +0000
commitc01fb7a6e52244b3cf2d879f2721916caa378031 (patch)
treeb6b30c7a147a4a13cf6f85fbb815d4515c83d785 /secure
parent43f5583c5c2c00ddb58c3c5527ab57dad165c750 (diff)
downloadFreeBSD-src-c01fb7a6e52244b3cf2d879f2721916caa378031.zip
FreeBSD-src-c01fb7a6e52244b3cf2d879f2721916caa378031.tar.gz
Merge from internat.freebsd.org: add libcrypto to librsaUSA's symbol search
path so that ERR_load_strings() is found in certain circumstances involving dlopen(). eg: main program dlopened foo.so which is linked against libcrypto. If libcrypto then dlopens librsaUSA.so, then it's search path doens't find libcrypto (!). One "fix" is to force modules (eg main opening foo.so) to use the RTLD_GLOBAL flag, the other is to explicitly declare dependencies (as done here).
Diffstat (limited to 'secure')
-rw-r--r--secure/lib/librsausa/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/secure/lib/librsausa/Makefile b/secure/lib/librsausa/Makefile
index 9fed9eb..6196af9 100644
--- a/secure/lib/librsausa/Makefile
+++ b/secure/lib/librsausa/Makefile
@@ -10,6 +10,8 @@ SHLIB_MAJOR= 1
CFLAGS+= -I${.OBJDIR}
+LDADD+= -L${.OBJDIR}/../libcrypto -lcrypto
+
# rsaref
SRCS+= rsar_err.c rsaref.c rsaref_stubs.c
OpenPOWER on IntegriCloud