]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Revert SF patch #103655. Martin Löwis says:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>
Mon, 19 Feb 2001 18:17:33 +0000 (18:17 +0000)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>
Mon, 19 Feb 2001 18:17:33 +0000 (18:17 +0000)
-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

index 909b914d0582f9f5af979d44fb8379194467f7dc..1457a03f518873c5612b9c1a382f3b94505f0699 100644 (file)
@@ -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";;