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
0310beaa
Commit
0310beaa
authored
Sep 09, 2009
by
Tarek Ziadé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #6163: Fixed HP-UX runtime library dir options in distutils.unixcompiler
parent
fa9880b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
tests/test_unixccompiler.py
tests/test_unixccompiler.py
+17
-1
unixccompiler.py
unixccompiler.py
+3
-1
No files found.
tests/test_unixccompiler.py
View file @
0310beaa
...
...
@@ -36,7 +36,23 @@ class UnixCCompilerTestCase(unittest.TestCase):
# hp-ux
sys
.
platform
=
'hp-ux'
self
.
assertEqual
(
self
.
cc
.
rpath_foo
(),
'+s -L/foo'
)
old_gcv
=
sysconfig
.
get_config_var
def
gcv
(
v
):
return
'xxx'
sysconfig
.
get_config_var
=
gcv
self
.
assertEqual
(
self
.
cc
.
rpath_foo
(),
[
'+s'
,
'-L/foo'
])
def
gcv
(
v
):
return
'gcc'
sysconfig
.
get_config_var
=
gcv
self
.
assertEqual
(
self
.
cc
.
rpath_foo
(),
[
'-Wl,+s'
,
'-L/foo'
])
def
gcv
(
v
):
return
'g++'
sysconfig
.
get_config_var
=
gcv
self
.
assertEqual
(
self
.
cc
.
rpath_foo
(),
[
'-Wl,+s'
,
'-L/foo'
])
sysconfig
.
get_config_var
=
old_gcv
# irix646
sys
.
platform
=
'irix646'
...
...
unixccompiler.py
View file @
0310beaa
...
...
@@ -285,7 +285,9 @@ class UnixCCompiler(CCompiler):
# MacOSX's linker doesn't understand the -R flag at all
return
"-L"
+
dir
elif
sys
.
platform
[:
5
]
==
"hp-ux"
:
return
"+s -L"
+
dir
if
"gcc"
in
compiler
or
"g++"
in
compiler
:
return
[
"-Wl,+s"
,
"-L"
+
dir
]
return
[
"+s"
,
"-L"
+
dir
]
elif
sys
.
platform
[:
7
]
==
"irix646"
or
sys
.
platform
[:
6
]
==
"osf1V5"
:
return
[
"-rpath"
,
dir
]
elif
compiler
[:
3
]
==
"gcc"
or
compiler
[:
3
]
==
"g++"
:
...
...
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