Rinum / OpenAnt

Open Ant! Join us at reddit.com/r/openant and http://webchat.freenode.net/ #openant
http://openant.com
102 stars 20 forks source link

build.sh can't find python.pc #23

Closed hrasdt closed 11 years ago

hrasdt commented 12 years ago

src/module/build.sh calls pkg-config on "python". On my Gentoo box at least, there is no python.pc, but there are python-2.7.pc and -3.1.pc.

The patch below fixes the issue; swapping "python" in build.sh, for "python-2.7". As the rest of the project seems to be 2.7 only, there shouldn't be any problems with breaking other things.

diff --git a/src/module/build.sh b/src/module/build.sh
index f1715bc..444baf3 100755
--- a/src/module/build.sh
+++ b/src/module/build.sh
@@ -1 +1 @@
-g++ -Wno-deprecated -O2 -shared -fPIC `pkg-config --cflags --libs-only-L x11 python gl` glmod.cpp  -o glmod.so
+g++ -Wno-deprecated -O2 -shared -fPIC `pkg-config --cflags --libs-only-L x11 python-2.7 gl` glmod.cpp  -o glmod.so