[Patches] [ python-Patches-403655 ] configure changes for Solaris
nobody
nobody@sourceforge.net
Thu, 01 Mar 2001 14:42:09 -0800
Patches #403655, was updated on 2001-02-07 05:30
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=403655&group_id=5470
Category: Build
Group: None
Status: Closed
Priority: 5
Submitted By: Scott Griggs
Assigned to: Martin v. Löwis
Summary: configure changes for Solaris
Initial Comment:
Configure was setting gcc -shared to build shared libraries on SunOS. Changed it back to gcc -G. The -shared option does not work on Solaris
----------------------------------------------------------------------
Comment By: Martin v. Löwis
Date: 2001-03-01 14:42
Message:
Logged In: YES
user_id=21627
Since Scott did not provide any rationale or indication of a
problem being solved with this patch, I'll reject it.
----------------------------------------------------------------------
Comment By: Neil Schemenauer
Date: 2001-02-19 10:24
Message:
Okay, I've reverted the patch. Sorry Martin.
----------------------------------------------------------------------
Comment By: Martin v. Löwis
Date: 2001-02-19 09:56
Message:
Why was this patch approved? Why does the -shared option not work on Solaris? -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.
Unless some explicit rationale can be given, I think this patch should be reversed.
----------------------------------------------------------------------
Comment By: Neil Schemenauer
Date: 2001-02-18 20:47
Message:
Checked in.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=403655&group_id=5470