From 387fd00c473617dd706e5cd1d709cb82c00710fb Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Fri, 12 Mar 2004 21:24:45 +0000 Subject: IRIX 6.x shared build fix-up. --- Makefile.org | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Makefile.org') diff --git a/Makefile.org b/Makefile.org index 7c02a2b929..9d48dc1e42 100644 --- a/Makefile.org +++ b/Makefile.org @@ -456,10 +456,12 @@ do_irix-shared: if [ "${SHLIBDIRS}" = "ssl" -a -n "$(LIBKRB5)" ]; then \ libs="$(LIBKRB5) $$libs"; \ fi; \ - ( set -x; ${CC} ${SHARED_LDFLAGS} \ + ( WHOLELIB="-all lib$$i.a -notall"; \ + (${CC} -v 2>&1 | grep gcc) > /dev/null && WHOLELIB="-Wl,-all,lib$$i.a,-notall"; \ + set -x; ${CC} ${SHARED_LDFLAGS} \ -shared -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ -Wl,-soname,lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ - -all lib$$i.a $$libs ${EX_LIBS} -lc) || exit 1; \ + ${WHOLELIB} $$libs ${EX_LIBS} -lc) || exit 1; \ libs="-l$$i $$libs"; \ done; \ fi -- cgit v1.2.3