provide nitc as a wrapper to nitg
[nit.git] / bin / gccx
index 749e996..7fe6717 100755 (executable)
--- a/bin/gccx
+++ b/bin/gccx
@@ -24,7 +24,7 @@ CC="cc" # Default compiler call
 ext="_savo _sav" # Default flavor to reuse
 out="a.out"  # Default output binary filename
 dir="" # Default tmp dir
-nolibgc="true" # Disable boehm libgc?
+nolibgc="false" # Disable boehm libgc?
 CKSUM="cksum" # Tool that perfors checksum. cksum seems to be very portable
 recompile="false"
 
@@ -69,7 +69,7 @@ return $res
 }
 
 cache=true
-if ccache -V 2>/dev/null >/dev/null; then
+if ( ccache -V ) 2>/dev/null >/dev/null; then
        cache=ccache
 fi
 
@@ -96,7 +96,8 @@ while [ $stop = false ]; do
 done
 
 if [ $nolibgc != true ] && test_libgc; then
-       OPTS="$OPTS -DWITH_LIBGC -lgc"
+       OPTS="$OPTS -DWITH_LIBGC"
+       libs="$libs -lgc"
 fi
 
 if [ $cache = "ccache" ]; then