Ulf M�ller wrote:
>
> >I adapted the sharelib patch for ssleay to openssl-0.9.2b. It is using
> >libtool. The patch is for linux, but you can easily adapt it for other
> >architectures. Just change the appropriate lines in Configure.
>
> >+# This program is free software; you can redistribute it and/or modify
> >+# it under the terms of the GNU General Public License as published by
> >+# the Free Software Foundation; either version 2 of the License, or
> >+# (at your option) any later version.
>
> >+# As a special exception to the GNU General Public License, if you
> >+# distribute this file as part of a program that contains a
> >+# configuration script generated by Autoconf, you may include it under
> >+# the same distribution terms that you use for the rest of that program.
>
> We have a problem there...
I am building shared libraries on linux by just calling ${MAKE}
with -fPIC (which should really be an extra configure variable) added
to ${CFLAG}, and ${DIRS} set to just "ssl" or "crypto", then call:
${CC} -shared -o libXXX.so.${MAJOR}.${MINOR} \
-Wl,-soname=libXXX.so.${MAJOR} \
-Wl,--whole-archive libXXX.a \
-Wl,--no-whole-archive -lc
which uses ${MAJOR} and ${MINOR} that should be added as Makefile
variables.
Attached is a patch against 0.9.2b.
--
Niels Poppe - org.net bv <[EMAIL PROTECTED]>
openssl-makeshared.patch