projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf75e9e
)
use -fPIC -shared when compiling "libraries" demo
author
Bryan Bishop
<kanzure@gmail.com>
Tue, 10 Sep 2013 01:03:18 +0000
(20:03 -0500)
committer
Bryan Bishop
<kanzure@gmail.com>
Tue, 10 Sep 2013 01:03:18 +0000
(20:03 -0500)
This fixes the "libraries" demo's setup.py for building the call_mymath
extension.
Demos/libraries/setup.py
patch
|
blob
|
history
diff --git
a/Demos/libraries/setup.py
b/Demos/libraries/setup.py
index
b4a3659
..
557f64f
100644
(file)
--- a/
Demos/libraries/setup.py
+++ b/
Demos/libraries/setup.py
@@
-8,7
+8,7
@@
from Cython.Distutils import build_ext
# For demo purposes, we build our own tiny library.
try:
print "building libmymath.a"
- assert os.system("gcc -c mymath.c -o mymath.o") == 0
+ assert os.system("gcc -
shared -fPIC -
c mymath.c -o mymath.o") == 0
assert os.system("ar rcs libmymath.a mymath.o") == 0
except:
if not os.path.exists("libmymath.a"):