aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.org
diff options
context:
space:
mode:
authorLutz Jänicke <jaenicke@openssl.org>2001-09-06 19:25:56 +0000
committerLutz Jänicke <jaenicke@openssl.org>2001-09-06 19:25:56 +0000
commit9cabef963cf67aefba0f560eb284bbb827f3e306 (patch)
tree133f9e378d394cd3461ba8fe23c72bdb4ddbd473 /Makefile.org
parentce9eab79a7b98786a2445020f7c249284a31e64e (diff)
downloadopenssl-9cabef963cf67aefba0f560eb284bbb827f3e306.tar.gz
Completely reworked SVR5 shared library support.
Diffstat (limited to 'Makefile.org')
-rw-r--r--Makefile.org20
1 files changed, 12 insertions, 8 deletions
diff --git a/Makefile.org b/Makefile.org
index f3bc96597e..9132551ff7 100644
--- a/Makefile.org
+++ b/Makefile.org
@@ -315,14 +315,18 @@ do_solaris-shared:
# UnixWare 7 and OpenUNIX 8 native compilers used
do_svr5-shared:
- libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
- touch lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
- ( PATH=/usr/ccs/bin:$$PATH ; export PATH; \
- set -x; ${CC} -G -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
- -h lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
- -z allextract lib$$i.a $$libs ${EX_LIBS} ) || exit 1; \
- libs="$$libs -l$$i"; \
- done
+ libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
+ ( PATH=/usr/ccs/bin:$$PATH ; export PATH; \
+ find . -name "*.o" -print > allobjs ; \
+ OBJS= ; export OBJS ; \
+ for obj in `ar t lib$$i.a` ; do \
+ OBJS="$${OBJS} `grep $$obj allobjs`" ; \
+ done ; \
+ set -x; ${CC} -G -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
+ -h lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
+ $${OBJS} $$libs ${EX_LIBS} ) || exit 1; \
+ libs="$$libs -l$$i"; \
+ done
# This assumes that GNU utilities are *not* used
do_irix-shared: