From 3187486c8a494a02a0bf18d27c8ac325d014b3a1 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Thu, 2 Mar 2000 05:22:46 +0000 Subject: [PATCH] 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). --- secure/lib/librsausa/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/secure/lib/librsausa/Makefile b/secure/lib/librsausa/Makefile index 9fed9eb7de55..6196af920f6a 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