diff options
author | Andy Polyakov <appro@openssl.org> | 2004-03-12 21:52:54 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2004-03-12 21:52:54 +0000 |
commit | 30fbcaa213866426c9f6b9dad01b9885ab760e31 (patch) | |
tree | 9c08241d620b27182a7b7a1170e1ff508b8a4514 /Makefile.shared | |
parent | 93825dddad499c925acbd3e1f20feb8ad999caa1 (diff) |
IRIX 6.x shared build fix-up.
For reference. Note that both cc and gcc support -Wl flag, but we can't
use -Wl,-[not]all with both drivers, because cc rearranges options
passed through -Wl. We can't use -Wl,-all,libcrypto.a,-notall with cc
either, because it refuses to start with "no input" error.
Diffstat (limited to 'Makefile.shared')
-rw-r--r-- | Makefile.shared | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Makefile.shared b/Makefile.shared index aee364bea8..d0ff69c83c 100644 --- a/Makefile.shared +++ b/Makefile.shared @@ -548,8 +548,10 @@ link_o.irix: SHLIB=lib$(LIBNAME).so; \ SHLIB_SUFFIX=; \ LIBDEPS="$(LIBDEPS) -lc"; \ - ALLSYMSFLAGS='-all'; \ - NOALLSYMSFLAGS=''; \ + MINUSWL=""; \ + ($(CC) -v 2>&1 | grep gcc) > /dev/null && MINUSWL="-Wl,"; \ + ALLSYMSFLAGS="$${MINUSWL}-all"; \ + NOALLSYMSFLAGS="$${MINUSWL}-notall"; \ SHAREDFLAGS="-shared -Wl,-soname,$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX -Wl,-rpath,$(LIBRPATH)"; \ SHAREDCMD='$(CC)'; \ fi; \ @@ -562,8 +564,10 @@ link_a.irix: SHLIB=lib$(LIBNAME).so; \ SHLIB_SUFFIX=; \ LIBDEPS="$(LIBDEPS) -lc"; \ - ALLSYMSFLAGS='-all'; \ - NOALLSYMSFLAGS=''; \ + MINUSWL=""; \ + ($(CC) -v 2>&1 | grep gcc) > /dev/null && MINUSWL="-Wl,"; \ + ALLSYMSFLAGS="$${MINUSWL}-all"; \ + NOALLSYMSFLAGS="$${MINUSWL}-notall"; \ SHAREDFLAGS="-shared -Wl,-soname,$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX -Wl,-rpath,$(LIBRPATH)"; \ SHAREDCMD='$(CC)'; \ fi; \ |