On Thu, Dec 15, 2011 at 2:02 PM, Dmitry Chestnykh
<[email protected]>wrote:

> Alternatively -- wild idea -- maybe we can use dlopen() at runtime to
> provide SSL support if OpenSSL is installed?
>

FWIW, using dlopen() prohibits (on Linux) proper static linking as well:

[stephan@cheyenne:~/tmp]$ cat foo.c
#include <dlfcn.h>
void foo() { void * h = dlopen("/foo.so", 0); if(h) dlclose(h); }
int main(){return 0;}
[stephan@cheyenne:~/tmp]$ gcc -c foo.c
[stephan@cheyenne:~/tmp]$ gcc -o foo foo.o -static -ldl
foo.o: In function `foo':
foo.c:(.text+0x13): warning: Using 'dlopen' in statically linked
applications requires at runtime the shared libraries from the glibc
version used for linking

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to