Fixed compilation issue for x32 architecture on 64bits systems.
[psensor.git] / scripts / build_x32.sh
diff --git a/scripts/build_x32.sh b/scripts/build_x32.sh
new file mode 100755 (executable)
index 0000000..e323e7d
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+SDIR=`dirname $0`
+
+cd $SDIR/..
+
+./configure --build=i686-pc-linux-gnu "CFLAGS=-mx32" "CXXFLAGS=-mx32" "LDFLAGS=-mx32"
+
+make clean all