git » libjio » commit 29a7cd7

Fix samples' build script

author Alberto Bertogli
2009-03-18 04:38:46 UTC
committer Alberto Bertogli
2009-03-18 04:38:46 UTC
parent f7620acdac624642f286d3c37bad6f85bcf97f87

Fix samples' build script

Thanks to Chris Riddoch for the bug report.

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

samples/build +5 -4

diff --git a/samples/build b/samples/build
index f846eda..39b68dc 100755
--- a/samples/build
+++ b/samples/build
@@ -1,5 +1,6 @@
-gcc -Wall -O6 -ljio -lpthread jio1.c -o jio1
-gcc -Wall -O6 -ljio -lpthread jio2.c -o jio2
-gcc -Wall -O6 -ljio -lpthread jio3.c -o jio3
-gcc -Wall -O6 -ljio full.c -o full
 
+B="gcc -Wall -O3 -ljio `getconf LFS_CFLAGS` -D_FILE_OFFSET_BITS=64"
+for i in jio1 jio2 jio3 full; do
+	echo "CC  " $i
+	$B $i.c -o $i
+done