diff -u configure Configure --- configure 2008-09-12 10:47:00.000000000 -0400 +++ Configure 2008-11-12 14:57:50.000000000 -0500 @@ -322,6 +322,7 @@ "linux-ppc", "gcc:-DB_ENDIAN -DTERMIO -O3 -Wall::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL::linux_ppc32.o::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", #### IA-32 targets... "linux-ia32-icc", "icc:-DL_ENDIAN -DTERMIO -O2 -no_cpprt::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-KPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", +"linux-mipsel", "mipsel-linux-gcc:-DL_ENDIAN -DTERMIOS -O2 -L/mnt/lib -I/mnt/include -Wall::-D_REENTRANT::-L/mnt/lib -ldl -lz:BN_LLONG BN_LLONG RC4_CHUNK DES_INT DES_RISC1:${no_asm}:dlfcn:linux-shared:-fpic::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR):mipsel-linux-ranlib", "linux-elf", "gcc:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", "linux-aout", "gcc:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -march=i486 -Wall::(unknown):::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_out_asm}", #### diff -u Makefile.ORG Makefile.org --- Makefile.ORG 2008-04-03 19:03:39.000000000 -0400 +++ Makefile.org 2008-04-03 19:03:39.000000000 -0400 @@ -245,20 +245,26 @@ @dir=crypto; target=testapps; $(BUILD_ONE_CMD) libcrypto$(SHLIB_EXT): libcrypto.a - @if [ "$(SHLIB_TARGET)" != "" ]; then \ - $(MAKE) SHLIBDIRS=crypto build-shared; \ - else \ - echo "There's no support for shared libraries on this platform" >&2; \ - exit 1; \ - fi + $(CC) -shared -Wl,-soname,libcrypto$(SHLIB_EXT) -o libcrypto$(SHLIB_EXT) \ + -Wl,--whole-archive libcrypto.a -Wl,--no-whole-archive + + ## @if [ "$(SHLIB_TARGET)" != "" ]; then \ + ## $(MAKE) SHLIBDIRS=crypto build-shared; \ + ## else \ + ## echo "There's no support for shared libraries on this platform" >&2; \ + ## exit 1; \ + ## fi libssl$(SHLIB_EXT): libcrypto$(SHLIB_EXT) libssl.a - @if [ "$(SHLIB_TARGET)" != "" ]; then \ - $(MAKE) SHLIBDIRS=ssl SHLIBDEPS='-lcrypto' build-shared; \ - else \ - echo "There's no support for shared libraries on this platform" >&2; \ - exit 1; \ - fi + $(CC) -shared -Wl,-soname,libssl$(SHLIB_EXT) -o libssl$(SHLIB_EXT) \ + -Wl,--whole-archive libssl.a -Wl,--no-whole-archive + + ## @if [ "$(SHLIB_TARGET)" != "" ]; then \ + ## $(MAKE) SHLIBDIRS=ssl SHLIBDEPS='-lcrypto' build-shared; \ + ## else \ + ## echo "There's no support for shared libraries on this platform" >&2; \ + ## exit 1; \ + ## fi clean-shared: @set -e; for i in $(SHLIBDIRS); do \