summaryrefslogtreecommitdiffstats
path: root/Makefile.org
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2005-03-12 09:28:18 +0000
committerAndy Polyakov <appro@openssl.org>2005-03-12 09:28:18 +0000
commitaa0d4ed5fac931cbd652d9f1557bcf68e4ecec44 (patch)
treecfae31dcd454fea06a95f35b6fdb222af22afb21 /Makefile.org
parent2cf68c0b1ad860572e712893fbc4d471cf95a515 (diff)
Move copying of .dll to apps/ and test/ to more appropriate place.
Diffstat (limited to 'Makefile.org')
-rw-r--r--Makefile.org11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile.org b/Makefile.org
index afe3d43d1c..d60d085dcc 100644
--- a/Makefile.org
+++ b/Makefile.org
@@ -334,11 +334,18 @@ do_cygwin-shared:
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