File: make.sh

package info (click to toggle)
jpy 1.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,420 kB
  • sloc: ansic: 8,196; java: 3,617; python: 2,952; xml: 180; makefile: 162; sh: 49; javascript: 29
file content (13 lines) | stat: -rw-r--r-- 496 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash
set -x #echo on

# These are more or less the compiler and linker flags used by Python's distutils.core.setup()

CC_FLAGS="-pthread -g -fwrapv -O2 -Wall -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2"
LD_FLAGS="-shared -fPIC -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-O1"

gcc $CC_FLAGS mypy.c -ldl -o mypy
gcc $CC_FLAGS mypydl.c -I/usr/include/python3.4m -lpython3.4m $LD_FLAGS -o mypydl.so

python3 setup.py install --user