[Python-checkins] CVS: python/dist/src configure.in,1.203,1.204
Neil Schemenauer
nascheme@users.sourceforge.net
Mon, 19 Feb 2001 10:17:35 -0800
Update of /cvsroot/python/python/dist/src
In directory usw-pr-cvs1:/tmp/cvs-serv28776
Modified Files:
configure.in
Log Message:
Revert SF patch #103655. Martin Löwis says:
-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.
Index: configure.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure.in,v
retrieving revision 1.203
retrieving revision 1.204
diff -C2 -r1.203 -r1.204
*** configure.in 2001/02/19 04:47:42 1.203
--- configure.in 2001/02/19 18:17:33 1.204
***************
*** 545,549 ****
SunOS/5*)
if test "$GCC" = "yes"
! then LDSHARED='$(CC) -G'
else LDSHARED="ld -G";
fi ;;
--- 545,549 ----
SunOS/5*)
if test "$GCC" = "yes"
! then LDSHARED='$(CC) -shared'
else LDSHARED="ld -G";
fi ;;