mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-05-04 08:04:25 +02:00
ui-macos/bits/runpython.do: auto-determine arches to build for.
Some people don't have all of them installed, so auto-detect them by looking at the available arches in /usr/libexec.
This commit is contained in:
parent
da2c6273f6
commit
c13be0b817
@ -1,6 +1,10 @@
|
|||||||
exec >&2
|
exec >&2
|
||||||
redo-ifchange runpython.c
|
redo-ifchange runpython.c
|
||||||
gcc -arch ppc -arch i386 -arch x86_64 \
|
ARCHES=""
|
||||||
|
for d in /usr/libexec/gcc/darwin/*; do
|
||||||
|
ARCHES="$ARCHES -arch $(basename $d)"
|
||||||
|
done
|
||||||
|
gcc $ARCHES \
|
||||||
-Wall -o $3 runpython.c \
|
-Wall -o $3 runpython.c \
|
||||||
-I/usr/include/python2.5 \
|
-I/usr/include/python2.5 \
|
||||||
-lpython2.5
|
-lpython2.5
|
||||||
|
Loading…
Reference in New Issue
Block a user