mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-26 14:40:31 +00:00
* r2-swig fixes reported by @hteso
This commit is contained in:
parent
72ef2c2a1f
commit
4ec547ed04
@ -4,6 +4,8 @@
|
||||
|
||||
SUP_LANGS=""
|
||||
LANGS="python perl ruby lua go java"
|
||||
[ -z "${CC}" ] && CC=gcc
|
||||
[ -z "${CXX}" ] && CXX=g++
|
||||
|
||||
if [ "$1" = "force-all" ]; then
|
||||
:> supported.langs
|
||||
@ -13,7 +15,7 @@ if [ "$1" = "force-all" ]; then
|
||||
echo python >> supported.langs
|
||||
fi
|
||||
echo "#include <lua.h>" > .test.c
|
||||
${CC} -c .test.c
|
||||
${CC} -I/usr/include/lua5.1 ${CFLAGS} -c .test.c
|
||||
if [ -f .test.o ]; then
|
||||
echo "check-langs.sh: Detected lua"
|
||||
echo lua >> supported.langs
|
||||
|
@ -5,9 +5,13 @@
|
||||
# order matters here
|
||||
PCS=" python2-config
|
||||
python25-config
|
||||
python2.5-config
|
||||
python26-config
|
||||
python2.6-config
|
||||
python27-config
|
||||
python2.7-config
|
||||
python28-config
|
||||
python2.8-config
|
||||
python-config"
|
||||
PYTHONCONFIG=""
|
||||
|
||||
|
@ -41,9 +41,15 @@ else
|
||||
test ../vapi/$${VAPI} -nt ${LIBS_PFX}$@ -o ! -e ${LIBS_PFX}$@ ; \
|
||||
if [ $$? = 0 ]; then echo " - ${LANG} $@" ; \
|
||||
LIB=`echo $@ | sed -e s,.${SOEXT},,` ; \
|
||||
${CXX} -fPIC -shared $${LIB}_wrap.cxx `../python-config-wrapper --cflags --libs` \
|
||||
`pkg-config --cflags --libs $${LIB}` ${CFLAGS} ${LDFLAGS} -o ${LIBS_PFX}$@ ; \
|
||||
fi ; true
|
||||
case "${LANG}" in \
|
||||
"python") \
|
||||
${CXX} -fPIC -shared $${LIB}_wrap.cxx `../python-config-wrapper --cflags --libs` \
|
||||
`pkg-config --cflags --libs $${LIB}` ${CFLAGS} ${LDFLAGS} -o ${LIBS_PFX}$@ ; \
|
||||
;; \
|
||||
"lua") \
|
||||
${CXX} -fPIC -shared $${LIB}_wrap.cxx -I/usr/include/lua5.1 ${CFLAGS} ${LDFLAGS} -o ${LIBS_PFX}$@ ; \
|
||||
;; \
|
||||
esac ; fi ; true
|
||||
|
||||
clean:
|
||||
rm -f *.${SOEXT}
|
||||
|
Loading…
Reference in New Issue
Block a user