Commit 19fab8f2 authored by Robert Bradshaw's avatar Robert Bradshaw

Merge pull request #256 from kanzure/fix-libraries-example

use -fPIC -shared when compiling "libraries" demo
parents c63179e0 ee171b77
......@@ -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