diff options
author | Richard Levitte <levitte@openssl.org> | 2003-04-01 10:59:40 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2003-04-01 10:59:40 +0000 |
commit | 6076f21f5e3423fac9015ba72e64ac6b3723bfc7 (patch) | |
tree | 21c82dbef76a33a44143f9c8e8d8d0cce5e0ee0c /Makefile.org | |
parent | be34231656a84da64b94c4acdc3253811ee4b7e3 (diff) |
It seems like gcc-drivven shared library building on OpenUnix 8 requires
-shared rather than -G.
Diffstat (limited to 'Makefile.org')
-rw-r--r-- | Makefile.org | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile.org b/Makefile.org index 3acc550243..70496fb9c4 100644 --- a/Makefile.org +++ b/Makefile.org @@ -407,12 +407,15 @@ do_svr3-shared: libs="$(LIBKRB5) $$libs"; \ fi; \ ( PATH=/usr/ccs/bin:$$PATH ; export PATH; \ + SHARE_FLAG='-G'; \ + (${CC} -v 2>&1 | grep gcc) > /dev/null && SHARE_FLAGS='-shared'; \ 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} \ + set -x; ${CC} ${SHARED_LDFLAGS} \ + $${SHARE_FLAG} -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ -h lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ $${OBJS} $$libs ${EX_LIBS} ) || exit 1; \ libs="-l$$i $$libs"; \ @@ -429,13 +432,15 @@ do_svr5-shared: libs="$(LIBKRB5) $$libs"; \ fi; \ ( PATH=/usr/ccs/bin:$$PATH ; export PATH; \ + SHARE_FLAG='-G'; \ + (${CC} -v 2>&1 | grep gcc) > /dev/null && SHARE_FLAGS='-shared'; \ 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} ${SHARED_LDFLAGS} \ - -G -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ + $${SHARE_FLAG} -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ -h lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ $${OBJS} $$libs ${EX_LIBS} ) || exit 1; \ libs="-l$$i $$libs"; \ |