[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [SECOND RESEND] [PATCH] tools/python: Pass linker to Python build process
On Thu, Oct 15, 2020 at 03:02:59AM +0200, Marek Marczykowski-G??recki wrote: > On Tue, Oct 13, 2020 at 01:26:06PM +0000, Wei Liu wrote: > > On Sun, Oct 11, 2020 at 06:11:39PM -0700, Elliott Mitchell wrote: > > > Having looked around a bit, I believe this is a Python 2/3 compatibility > > > issue. "distutils" for Python 2 likely lacked a separate $LDSHARED or > > > $LD variable, whereas Python 3 does have this. Alas this is pointless > > > due to the above (unless you can cause distutils.py to do the final link > > > step separately). > > > > I think this is well-reasoned but I don't have time to figure out and > > verify the details. > > Yes, it looks like distutils in Python 2 was even more limited than > the one in Python 3. Actually feels like two steps forward, one step back. Separate $LDSHARED, yet $CFLAGS is appended to $LDFLAGS during invocation. Architecture name is included the output Python extension filename, yet the only way to override requires writing Python code. I've got ideas to workaround this, but they're rather gross. -- (\___(\___(\______ --=> 8-) EHM <=-- ______/)___/)___/) \BS ( | ehem+sigmsg@xxxxxxx PGP 87145445 | ) / \_CS\ | _____ -O #include <stddisclaimer.h> O- _____ | / _/ 8A19\___\_|_/58D2 7E3D DDF4 7BA6 <-PGP-> 41D1 B375 37D0 8714\_|_/___/5445
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |