gc: in gccx, -lgc must appears after objects
authorJean Privat <jean@pryen.org>
Fri, 15 Jun 2012 17:17:10 +0000 (13:17 -0400)
committerJean Privat <jean@pryen.org>
Fri, 15 Jun 2012 17:17:10 +0000 (13:17 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

bin/gccx

index 1749875..e4ff197 100755 (executable)
--- a/bin/gccx
+++ b/bin/gccx
@@ -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