This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: hardcoded compilers for LDSHARED/LDCXXSHARED on NetBSD
Type: behavior Stage: resolved
Components: Build Versions: Python 3.1, Python 3.2, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: Arfrever, njoly, obache, pitrou
Priority: normal Keywords: patch

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 $(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 $(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:09adminsetgithub: 54684
2011-01-02 21:05:52pitrousetnosy: pitrou, Arfrever, njoly, obache
messages: + msg125098
2011-01-02 20:17:07Arfreversetnosy: + Arfrever
messages: + msg125091
2011-01-02 19:39:08pitrousetstatus: open -> closed
versions: - Python 2.6, Python 2.5
nosy: pitrou, njoly, obache
messages: + msg125079

resolution: fixed
stage: patch review -> resolved
2010-12-22 02:52:26obachesetnosy: pitrou, njoly, obache
messages: + msg124479
versions: + Python 2.6, Python 2.5
2010-12-22 00:29:11njolysetnosy: pitrou, njoly, obache
messages: + msg124471
2010-12-21 17:49:03pitrousetversions: + Python 3.1, Python 3.2
nosy: + pitrou

messages: + msg124438

type: behavior
stage: patch review
2010-12-21 11:24:19obachesetnosy: + obache
messages: + msg124426
2010-11-20 23:59:39njolycreate