if [ "${SHLIBDIRS}" = "ssl" -a -n "$(LIBKRB5)" ]; then \
libs="$(LIBKRB5) $$libs"; \
fi; \
- ( set -x; ${CC} -shared -o cyg$$i-$(SHLIB_VERSION_NUMBER).dll \
+ shlib=cyg$${i}-$(SHLIB_VERSION_NUMBER).dll; \
+ [ "$(PLATFORM)" = "mingw" ] && shlib=$${i}eay32.dll; \
+ [ -f apps/$$shlib ] && rm apps/$$shlib; \
+ [ -f test/$$shlib ] && rm test/$$shlib; \
+ base=; [ $$i = "crypto" ] && base=-Wl,--image-base,0xFE00000; \
+ ( set -x; ${CC} ${SHARED_LDFLAGS} \
+ -shared $$base -o $$shlib \
-Wl,-Bsymbolic \
-Wl,--whole-archive lib$$i.a \
-Wl,--out-implib,lib$$i.dll.a \
- -Wl,--no-whole-archive $$libs ) || exit 1; \
+ -Wl,--no-whole-archive $$libs ${EX_LIBS} ) || exit 1; \
+ cp -p $$shlib apps/; cp -p $$shlib test/; \
libs="-l$$i $$libs"; \
done
if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \
TOP=$(TOP) $(TOP)/fips/openssl_fips_fingerprint $(TOP)/libcrypto.a $(EXE); \
fi
- @case "../*.dll" in *\**) ;; *) cp -p ../*.dll .;; esac
-(cd ..; \
OPENSSL="`pwd`/util/opensslwrap.sh"; export OPENSSL; \
$(PERL) tools/c_rehash certs)
LD_LIBRARY_PATH=..:$$LD_LIBRARY_PATH \
$(CC) -o dummytest$(EXE_EXT) $(CFLAGS) dummytest.o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
fi
- @case "../*.dll" in *\**) ;; *) cp -p ../*.dll .;; esac
# DO NOT DELETE THIS LINE -- make depend depends on it.