Permalink
Browse files

use -fPIC -shared when compiling "libraries" demo

This fixes the "libraries" demo's setup.py for building the call_mymath
extension.
  • Loading branch information...
1 parent cf75e9e commit ee171b7796c90f339ffc910aa8f998f659745ef9 @kanzure kanzure committed Sep 10, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 Demos/libraries/setup.py
@@ -8,7 +8,7 @@
# 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"):

0 comments on commit ee171b7

Please sign in to comment.