gccx: fix for linking with C libs for native interface
authorAlexis Laferrière <alexis.laf@xymus.net>
Sat, 18 Feb 2012 23:22:35 +0000 (18:22 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Thu, 12 Apr 2012 19:38:16 +0000 (15:38 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

bin/gccx

index 8159f30..749e996 100755 (executable)
--- a/bin/gccx
+++ b/bin/gccx
@@ -81,7 +81,7 @@ while [ $stop = false ]; do
                -R) recompile=true; shift;;
                -O) OPTS="$OPTS -O2" ext="_savo"; shift;;
                -i) CC="/opt/intel/cc/10.1.015/bin/icc -O2" ext="_savi"; shift;;
-               -l) libs="$libs -l$2"; shift;;
+               -l) libs="$libs -l$2"; shift; shift;;
                -ll) CC="clang --ansi --pedantic -O3"; ext="_savll"; shift;;
                -I) OPTS="$OPTS -I $2"; shift; shift;;
                -o) out="$2"; shift; shift;;