Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
439bf93f
Kaydet (Commit)
439bf93f
authored
Haz 20, 2009
tarafından
Tarek Ziadé
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #6164 AIX specific linker argument in Distutils unixcompiler
üst
dae5db28
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
16 deletions
+28
-16
test_unixccompiler.py
Lib/distutils/tests/test_unixccompiler.py
+8
-0
unixccompiler.py
Lib/distutils/unixccompiler.py
+17
-16
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/distutils/tests/test_unixccompiler.py
Dosyayı görüntüle @
439bf93f
...
...
@@ -86,6 +86,14 @@ class UnixCCompilerTestCase(unittest.TestCase):
sysconfig
.
get_config_var
=
gcv
self
.
assertEqual
(
self
.
cc
.
rpath_foo
(),
'-R/foo'
)
# AIX C/C++ linker
sys
.
platform
=
'aix'
def
gcv
(
v
):
return
'xxx'
sysconfig
.
get_config_var
=
gcv
self
.
assertEqual
(
self
.
cc
.
rpath_foo
(),
'-blibpath:/foo'
)
def
test_suite
():
return
unittest
.
makeSuite
(
UnixCCompilerTestCase
)
...
...
Lib/distutils/unixccompiler.py
Dosyayı görüntüle @
439bf93f
...
...
@@ -288,23 +288,24 @@ class UnixCCompiler(CCompiler):
return
"+s -L"
+
dir
elif
sys
.
platform
[:
7
]
==
"irix646"
or
sys
.
platform
[:
6
]
==
"osf1V5"
:
return
[
"-rpath"
,
dir
]
else
:
if
compiler
[:
3
]
==
"gcc"
or
compiler
[:
3
]
==
"g++"
:
# gcc on non-GNU systems does not need -Wl, but can
# use it anyway. Since distutils has always passed in
# -Wl whenever gcc was used in the past it is probably
# safest to keep doing so.
if
sysconfig
.
get_config_var
(
"GNULD"
)
==
"yes"
:
# GNU ld needs an extra option to get a RUNPATH
# instead of just an RPATH.
return
"-Wl,--enable-new-dtags,-R"
+
dir
else
:
return
"-Wl,-R"
+
dir
elif
compiler
[:
3
]
==
"gcc"
or
compiler
[:
3
]
==
"g++"
:
# gcc on non-GNU systems does not need -Wl, but can
# use it anyway. Since distutils has always passed in
# -Wl whenever gcc was used in the past it is probably
# safest to keep doing so.
if
sysconfig
.
get_config_var
(
"GNULD"
)
==
"yes"
:
# GNU ld needs an extra option to get a RUNPATH
# instead of just an RPATH.
return
"-Wl,--enable-new-dtags,-R"
+
dir
else
:
# No idea how --enable-new-dtags would be passed on to
# ld if this system was using GNU ld. Don't know if a
# system like this even exists.
return
"-R"
+
dir
return
"-Wl,-R"
+
dir
elif
sys
.
platform
[:
3
]
==
"aix"
:
return
"-blibpath:"
+
dir
else
:
# No idea how --enable-new-dtags would be passed on to
# ld if this system was using GNU ld. Don't know if a
# system like this even exists.
return
"-R"
+
dir
def
library_option
(
self
,
lib
):
return
"-l"
+
lib
...
...
Misc/NEWS
Dosyayı görüntüle @
439bf93f
...
...
@@ -327,6 +327,9 @@ Core and Builtins
Library
-------
- Issue #6164: Added an AIX specific linker argument in Distutils
unixcompiler. Original patch by Sridhar Ratnakumar.
- Issue #6274: Fixed possible file descriptors leak in subprocess.py
- Issue #6189: Restored compatibility of subprocess.py with Python 2.2.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment