Hi, hackers!
I've tried to compile OpenSSL under BSDI 4.1, which is bsdi-elf, with shared
libraries, but Configure doesn't know how to do that on that platform. So,
below is a patch that contains proper settings.
One bad thing with Configure, that if to specify shared in the command line,
it puts:
LIBS=libcrypto.so* libssl.so*
in the Makefile, and then in the install: target it tries to iterate on LIBS
and apply ranlib to each library. But, ranlib is only for static libraries...
If to ommit 'shared' flag no shared libraries will be build :( Only with make
shlib, but in this case library version will be 0.9.4 :() (for o.9.6 distri-
bution).
And, another annoing problem - (if 'shared' specified) - lib* are copied. But,
at least in case of linux-shared a bunch of symlinks are created to get short
names for the libraries. That symlinks are copied as well, but, as cp is used
for installation, resulting files are regular ones insted of symlinks, so, ld-
conf is unable to recreate symlinks :(
And the last question: why not to use autoconf to configure the package? As
it's already knows a lot about shared libraries suppport on different platforms,
platform-specific problems, functions, etc... It'll be really nice and convinient.
Are there any strong objections agains that idea? Or, it just "historical re-
asons" :)?
With best regards,
Timur Bakeyev.
--- Configure.orig Sun Sep 24 17:27:37 2000
+++ Configure Sun Jan 7 23:20:23 2001
@@ -304,7 +304,7 @@
"FreeBSD-elf", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486
-Wall::(unknown)::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}",
"FreeBSD", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486
-Wall::(unknown)::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_out_asm}",
"bsdi-gcc", "gcc:-O3 -ffast-math -DL_ENDIAN -DPERL5 -m486::(unknown)::RSA_LLONG
${x86_gcc_des} ${x86_gcc_opts}:${x86_bsdi_asm}",
-"bsdi-elf-gcc", "gcc:-DPERL5 -DL_ENDIAN -fomit-frame-pointer -O3 -m486
-Wall::(unknown)::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}",
+"bsdi-elf-gcc", "gcc:-DPERL5 -DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486
+-Wall::-D_REENTRANT:-ldl:BN_LLONG ${x86_gcc_des}
+${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC",
"nextstep", "cc:-O -Wall:<libc.h>:(unknown)::BN_LLONG ${x86_gcc_des}
${x86_gcc_opts}:::",
"nextstep3.3", "cc:-O3 -Wall:<libc.h>:(unknown)::BN_LLONG ${x86_gcc_des}
${x86_gcc_opts}:::",
# NCR MP-RAS UNIX ver 02.03.01
--- Configure.orig Sun Sep 24 17:27:37 2000
+++ Configure Sun Jan 7 23:20:23 2001
@@ -304,7 +304,7 @@
"FreeBSD-elf", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486
-Wall::(unknown)::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}",
"FreeBSD", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486
-Wall::(unknown)::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_out_asm}",
"bsdi-gcc", "gcc:-O3 -ffast-math -DL_ENDIAN -DPERL5 -m486::(unknown)::RSA_LLONG
${x86_gcc_des} ${x86_gcc_opts}:${x86_bsdi_asm}",
-"bsdi-elf-gcc", "gcc:-DPERL5 -DL_ENDIAN -fomit-frame-pointer -O3 -m486
-Wall::(unknown)::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}",
+"bsdi-elf-gcc", "gcc:-DPERL5 -DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486
+-Wall::-D_REENTRANT:-ldl:BN_LLONG ${x86_gcc_des}
+${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC",
"nextstep", "cc:-O -Wall:<libc.h>:(unknown)::BN_LLONG ${x86_gcc_des}
${x86_gcc_opts}:::",
"nextstep3.3", "cc:-O3 -Wall:<libc.h>:(unknown)::BN_LLONG ${x86_gcc_des}
${x86_gcc_opts}:::",
# NCR MP-RAS UNIX ver 02.03.01