We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24ff777 commit 8a71861Copy full SHA for 8a71861
src/15/Makefile
@@ -1,2 +1,5 @@
1
osx::
2
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
@@ -7,7 +7,8 @@
7
["sample.pyx"],
8
include_dirs=['..'],
9
libraries=['sample'],
10
- library_dirs=['..'])]
+ library_dirs=['..'],
11
+ runtime_library_dirs=['..'])]
12
setup(
13
name = 'Sample extension module',
14
cmdclass = {'build_ext': build_ext},
src/15/wrapping_existing_c_code_with_cython/setup_alt.py
@@ -7,6 +7,7 @@
["sample_alt.pyx"],
+ runtime_library_dirs=['..'],
library_dirs=['..'])]
0 commit comments