Skip to content

Commit

Permalink
Minor linux fixes for Cython example
Browse files Browse the repository at this point in the history
  • Loading branch information
dabeaz committed Jan 21, 2015
1 parent 24ff777 commit 8a71861
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/15/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
osx::
gcc -shared -undefined dynamic_lookup sample.c -o libsample.so

linux::
gcc -shared -fPIC sample.c -o libsample.so
3 changes: 2 additions & 1 deletion src/15/wrapping_existing_c_code_with_cython/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
["sample.pyx"],
include_dirs=['..'],
libraries=['sample'],
library_dirs=['..'])]
library_dirs=['..'],
runtime_library_dirs=['..'])]
setup(
name = 'Sample extension module',
cmdclass = {'build_ext': build_ext},
Expand Down
1 change: 1 addition & 0 deletions src/15/wrapping_existing_c_code_with_cython/setup_alt.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
["sample_alt.pyx"],
include_dirs=['..'],
libraries=['sample'],
runtime_library_dirs=['..'],
library_dirs=['..'])]
setup(
name = 'Sample extension module',
Expand Down

0 comments on commit 8a71861

Please sign in to comment.