mirror of
https://github.com/python/cpython
synced 2024-09-22 07:51:37 +00:00
- Issue #17754: Make ctypes.util.find_library() independent of the locale.
This commit is contained in:
parent
dbbf4c813f
commit
ef535584a9
|
@ -92,7 +92,7 @@ def _findLib_gcc(name):
|
|||
fdout, ccout = tempfile.mkstemp()
|
||||
os.close(fdout)
|
||||
cmd = 'if type gcc >/dev/null 2>&1; then CC=gcc; elif type cc >/dev/null 2>&1; then CC=cc;else exit 10; fi;' \
|
||||
'$CC -Wl,-t -o ' + ccout + ' 2>&1 -l' + name
|
||||
'LANG=C LC_ALL=C $CC -Wl,-t -o ' + ccout + ' 2>&1 -l' + name
|
||||
try:
|
||||
f = os.popen(cmd)
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue