Rinum/OpenAnt — Issue #23: build.sh can't find python.pc
Author: hrasdt
Created: 2011-12-12 05:33:01+00:00
State: open

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.

```shell
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
```