Mercurial > hg > quicktun
diff build.sh @ 7:fd7c60905b13
BSD support
author | ivo <Ivo@UCIS.nl> |
---|---|
date | Wed, 13 Oct 2010 21:07:44 +0200 |
parents | 65c01f57bdce |
children | 5be1ecb80cc9 |
line wrap: on
line diff
--- a/build.sh Fri Oct 08 23:29:56 2010 +0000 +++ b/build.sh Wed Oct 13 21:07:44 2010 +0200 @@ -24,7 +24,7 @@ echo Done. export CPATH=./include/ -export LIBRARY_PATH=./lib/ +export LIBRARY_PATH=/usr/local/lib/:./lib/ echo Building combined binary... gcc -c -DCOMBINED_BINARY src/proto.raw.c -o obj/proto.raw.o @@ -48,7 +48,7 @@ ##echo Building frontends... ##gcc -o out/quicktun.debian src/run.debian.c -ldl -if [ -x /usr/bin/dpkg-deb ]; then +if [ -x /usr/bin/dpkg-deb -a -x /usr/bin/fakeroot ]; then echo Building debian binary... gcc -c -DCOMBINED_BINARY -DDEBIAN_BINARY src/run.combined.c -o obj/run.debian.o gcc -o out/quicktun.debian obj/common.o obj/run.debian.o obj/proto.raw.o obj/proto.nacl0.o obj/proto.nacltai.o obj/crypto_scalarmult_curve25519.o -lnacl