Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit ee171b7796c90f339ffc910aa8f998f659745ef9 1 parent cf75e9e
@kanzure kanzure authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Demos/libraries/setup.py
View
2  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"):
Please sign in to comment.
Something went wrong with that request. Please try again.