diff options
Diffstat (limited to 'release/src/router/cyassl/swig/PythonBuild.sh')
-rwxr-xr-x | release/src/router/cyassl/swig/PythonBuild.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/release/src/router/cyassl/swig/PythonBuild.sh b/release/src/router/cyassl/swig/PythonBuild.sh new file mode 100755 index 00000000..0fc2a880 --- /dev/null +++ b/release/src/router/cyassl/swig/PythonBuild.sh @@ -0,0 +1,9 @@ +#!/bin/bash +echo +swig -python cyassl.i +pythonIncludes=`python-config --includes` +pythonLibs=`python-config --libs` +gcc -c -fpic cyassl_wrap.c -I$pythonIncludes -I/usr/local/cyassl/include -DHAVE_CONFIG_H +gcc -c -fpic cyassl_adds.c -I/usr/local/cyassl/include +gcc -shared -flat_namespace cyassl_adds.o cyassl_wrap.o -lcyassl -L/usr/local/cyassl/lib $pythonLibs -o _cyassl.so +python runme.py |