2
0

PythonBuild.sh 304 B

123456789
  1. #!/bin/bash
  2. echo
  3. swig -python wolfssl.i
  4. pythonIncludes=`python-config --includes`
  5. pythonLibs=`python-config --libs`
  6. gcc -c -fpic wolfssl_wrap.c -I$pythonIncludes
  7. gcc -c -fpic wolfssl_adds.c
  8. gcc -shared -flat_namespace wolfssl_adds.o wolfssl_wrap.o -lwolfssl $pythonLibs -o _wolfssl.so
  9. python runme.py