Issue 10475: hardcoded compilers for LDSHARED/LDCXXSHARED on NetBSD (original) (raw)

Created on 2010-11-20 23:59 by njoly, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
python-cc.diff njoly,2010-11-20 23:59 Fix hardcoded compilers on NetBSD
Messages (8)
msg121817 - (view) Author: Nicolas Joly (njoly) Date: 2010-11-20 23:59
The configure script do hardcode compilers for LDSHARED/LDCXXSHARED on NetBSD, which should be avoided. [...] checking for gcc... gcc checking whether gcc accepts -g... yes [...] checking SO... .so checking LDSHARED... cc -shared checking CCSHARED... -fPIC [...]
msg124426 - (view) Author: OBATA Akio (obache) Date: 2010-12-21 11:24
This patch is also required for DragonFly, or libpython will not linked against libpthread and broken library.
msg124438 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2010-12-21 17:49
Does it work properly if CC and CXX are not defined by the user? (probably a naïve question, sorry)
msg124471 - (view) Author: Nicolas Joly (njoly) Date: 2010-12-22 00:29
I do not tested it extensively, but seems so. njoly@petaure [temp/python27]> ./python Python 2.7.1+ (release27-maint:87432M, Dec 22 2010, 01:10:26) [GCC 4.1.3 20080704 prerelease (NetBSD nb2 20081120)] on netbsd5 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys.version '2.7.1+ (release27-maint:87432M, Dec 22 2010, 01:10:26) \n[GCC 4.1.3 20080704 prerelease (NetBSD nb2 20081120)]' >>> import os >>> os.uname() ('NetBSD', 'petaure.lan', '5.99.41', 'NetBSD 5.99.41 (PETAURE) #7: Mon Dec 20 23:06:49 CET 2010 njoly@petaure.lan:/local/src/NetBSD/obj.amd64/sys/arch/amd64/compile/PETAURE', 'amd64')
msg124479 - (view) Author: OBATA Akio (obache) Date: 2010-12-22 02:52
CC and CXX will be set in configure script if not set.
msg125079 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011-01-02 19:39
Patch committed in r87639 (3.2), r87641 (3.1) and r87640 (2.7). Thank you!
msg125091 - (view) Author: Arfrever Frehtes Taifersar Arahesis (Arfrever) * (Python triager) Date: 2011-01-02 20:17
(CC)and(CC) and (CC)and(CXX) should be expanded by `make`, but configure.in contains wrong quoting, which results in incorrect expansion during running `configure`. -LDSHARED="$(CC) -shared" -LDCXXSHARED="$(CXX) -shared";; +LDSHARED='$(CC) -shared' +LDCXXSHARED='$(CXX) -shared';;
msg125098 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011-01-02 21:05
> (CC)and(CC) and (CC)and(CXX) should be expanded by `make`, but configure.in > contains wrong quoting, which results in incorrect expansion during > running `configure`. Oops, sorry. Should be fixed, now.
History
Date User Action Args
2022-04-11 14:57:09 admin set github: 54684
2011-01-02 21:05:52 pitrou set nosy:pitrou, Arfrever, njoly, obachemessages: +
2011-01-02 20:17:07 Arfrever set nosy: + Arfrevermessages: +
2011-01-02 19:39:08 pitrou set status: open -> closedversions: - Python 2.6, Python 2.5nosy:pitrou, njoly, obachemessages: + resolution: fixedstage: patch review -> resolved
2010-12-22 02:52:26 obache set nosy:pitrou, njoly, obachemessages: + versions: + Python 2.6, Python 2.5
2010-12-22 00:29:11 njoly set nosy:pitrou, njoly, obachemessages: +
2010-12-21 17:49:03 pitrou set versions: + Python 3.1, Python 3.2nosy: + pitroumessages: + type: behaviorstage: patch review
2010-12-21 11:24:19 obache set nosy: + obachemessages: +
2010-11-20 23:59:39 njoly create