Skip to content

Commit 8a71861

Browse files
committed
Minor linux fixes for Cython example
1 parent 24ff777 commit 8a71861

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/15/Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
osx::
22
gcc -shared -undefined dynamic_lookup sample.c -o libsample.so
3+
4+
linux::
5+
gcc -shared -fPIC sample.c -o libsample.so

src/15/wrapping_existing_c_code_with_cython/setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
["sample.pyx"],
88
include_dirs=['..'],
99
libraries=['sample'],
10-
library_dirs=['..'])]
10+
library_dirs=['..'],
11+
runtime_library_dirs=['..'])]
1112
setup(
1213
name = 'Sample extension module',
1314
cmdclass = {'build_ext': build_ext},

src/15/wrapping_existing_c_code_with_cython/setup_alt.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
["sample_alt.pyx"],
88
include_dirs=['..'],
99
libraries=['sample'],
10+
runtime_library_dirs=['..'],
1011
library_dirs=['..'])]
1112
setup(
1213
name = 'Sample extension module',

0 commit comments

Comments
 (0)