Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
b67c63dd
Commit
b67c63dd
authored
Apr 07, 2016
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
got linking on OS X working, tested on a Pi too. lets see about travis.
parent
807d15d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
Makefile
Makefile
+1
-0
_setuplibuv.py
_setuplibuv.py
+7
-0
No files found.
Makefile
View file @
b67c63dd
...
...
@@ -71,6 +71,7 @@ test_prelim:
${PYTHON}
--version
${PYTHON}
-c
'import greenlet; print(greenlet, greenlet.__version__)'
${PYTHON}
-c
'import gevent.core; print(gevent.core.loop)'
${PYTHON}
-c
'import gevent.libuv.corecffi; print(dir(gevent.libuv.corecffi.libuv))'
make bench
toxtest
:
test_prelim
...
...
_setuplibuv.py
View file @
b67c63dd
...
...
@@ -119,6 +119,13 @@ def configure_libuv(_bext, _ext):
cflags
=
'-fPIC'
env
=
os
.
environ
.
copy
()
env
[
'CFLAGS'
]
=
' '
.
join
(
x
for
x
in
(
cflags
,
env
.
get
(
'CFLAGS'
,
None
),
env
.
get
(
'ARCHFLAGS'
,
None
))
if
x
)
# Since we're building a static library, if link-time-optimization is requested, it
# results in failure to properly create the library archive. This goes unnoticed on
# OS X until import time because of '-undefined dynamic_lookup'. On the raspberry
# pi, it causes the linker to crash
if
'-flto'
in
env
[
'CFLAGS'
]:
log
.
info
(
"Removing LTO"
)
env
[
'CFLAGS'
]
=
env
[
'CFLAGS'
].
replace
(
'-flto'
,
''
)
log
.
info
(
'Building libuv...'
)
if
WIN
:
prepare_windows_env
(
env
)
...
...
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