From 95052725115953bb19bdef16b6410c8393eaa19c Mon Sep 17 00:00:00 2001 From: Neil Schemenauer Date: Mon, 19 Feb 2001 18:17:33 +0000 Subject: [PATCH] =?UTF-8?q?Revert=20SF=20patch=20#103655.=20=20Martin=20L?= =?UTF-8?q?=C3=B6wis=20says:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -shared does the following things: - invoke the linker with -G -dy -z text (the latter only if -mimpure-text was not given) - drop crt1.o from the list of objects being linked - drop -lc from the list of libraries being linked OTOH, -G is just passed through to the linker. The things that -shared does are necessary: crt1.o defines _start, and requires main, so it should not be present in a shared library. Likewise, -z text should be used to detect position-dependent code at compile time. --- configure.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 909b914d058..1457a03f518 100644 --- a/configure.in +++ b/configure.in @@ -544,7 +544,7 @@ then SunOS/4*) LDSHARED="ld";; SunOS/5*) if test "$GCC" = "yes" - then LDSHARED='$(CC) -G' + then LDSHARED='$(CC) -shared' else LDSHARED="ld -G"; fi ;; hp*|HP*) LDSHARED="ld -b";;