Commit ee171b77 authored by Bryan Bishop's avatar Bryan Bishop

use -fPIC -shared when compiling "libraries" demo

This fixes the "libraries" demo's setup.py for building the call_mymath
extension.
parent cf75e9eb
......@@ -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"):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment