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
edfa9c8b
Commit
edfa9c8b
authored
May 08, 2010
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert r80963 - it broke compilation everywhere
parent
73378954
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
20 deletions
+1
-20
unixccompiler.py
unixccompiler.py
+1
-20
No files found.
unixccompiler.py
View file @
edfa9c8b
...
...
@@ -15,7 +15,7 @@ the "typical" Unix-style command-line C compiler:
__revision__
=
"$Id$"
import
os
,
sys
,
re
import
os
,
sys
from
types
import
StringType
,
NoneType
from
distutils
import
sysconfig
...
...
@@ -305,29 +305,10 @@ class UnixCCompiler(CCompiler):
dylib_f
=
self
.
library_filename
(
lib
,
lib_type
=
'dylib'
)
static_f
=
self
.
library_filename
(
lib
,
lib_type
=
'static'
)
if
sys
.
platform
==
'darwin'
:
# On OSX users can specify an alternate SDK using
# '-isysroot', calculate the SDK root if it is specified
# (and use it further on)
cflags
=
sysconfig
.
get_config_var
(
'CFLAGS'
)
m
=
re
.
search
(
r'-isysroot\
s+(
\S+)'
,
cflags
)
if
m
is
None
:
sysroot
=
'/'
else
:
sysroot
=
m
.
group
(
1
)
for
dir
in
dirs
:
shared
=
os
.
path
.
join
(
dir
,
shared_f
)
dylib
=
os
.
path
.
join
(
dir
,
dylib_f
)
static
=
os
.
path
.
join
(
dir
,
static_f
)
if
sys
.
platform
==
'darwin'
and
(
dir
.
startswith
(
'/System/'
)
or
dir
.
startswith
(
'/usr/'
)):
shared
=
os
.
path
.
join
(
sysroot
,
dir
[
1
:],
shared_f
)
dylib
=
os
.
path
.
join
(
sysroot
,
dir
[
1
:],
dylib_f
)
static
=
os
.
path
.
join
(
sysroot
,
dir
[
1
:],
static_f
)
# We're second-guessing the linker here, with not much hard
# data to go on: GCC seems to prefer the shared library, so I'm
# assuming that *all* Unix C compilers do. And of course I'm
...
...
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