From: Ian Jackson Date: Thu, 10 Sep 2015 00:09:36 +0000 (+0000) Subject: Build system: Fix ./build debian X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=a6ee925df67de60c1e0d9fe9a09318c775c43fd6;p=wiringPi.git Build system: Fix ./build debian We need to -I and -L the build tree directories, not the directories in /usr/local or wheveever. Otherwise (a) the `./debian build' fails if wiringPi is not installed (b) if it _is_ installed, the build picks up the installed versions rather than the versions being built, which is wrong. Signed-off-by: Ian Jackson --- diff --git a/build b/build index 7c05087..00a366b 100755 --- a/build +++ b/build @@ -82,9 +82,9 @@ if [ x$1 = "xdebian" ]; then cd $here/wiringPi make install-deb cd $here/devLib - make install-deb + make install-deb INCLUDE='-I. -I../wiringPi' cd $here/gpio - make install-deb + make install-deb INCLUDE='-I../wiringPi -I../devLib' LDFLAGS=-L../debian/wiringPi/usr/lib cd $here/debian fakeroot dpkg-deb --build wiringPi mv wiringPi.deb wiringpi-`cat $here/VERSION`-1.deb