Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
1b8ce2c6
Commit
1b8ce2c6
authored
Jun 20, 2009
by
Tarek Ziadé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed #6164 AIX specific linker argument in Distutils unixcompiler
parent
5cb388ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
16 deletions
+25
-16
tests/test_unixccompiler.py
tests/test_unixccompiler.py
+8
-0
unixccompiler.py
unixccompiler.py
+17
-16
No files found.
tests/test_unixccompiler.py
View file @
1b8ce2c6
...
...
@@ -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
)
...
...
unixccompiler.py
View file @
1b8ce2c6
...
...
@@ -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
...
...
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