use host system tools
[hdw-linux/hdw-linux.git] / packages / toolchain / gcc / gcc
index 3b4fea6..d1c8675 100644 (file)
@@ -16,14 +16,12 @@ confopt="$confopt --libexecdir=$prefix/lib"
 unset CFLAGS
 
 if [ "$priority" = "1" ] ; then
-       confopt=${confopt//--host* /--host=$hdw_arch_build }
        confopt="$confopt --enable-languages=c --disable-nls"
 
-       # use host system gcc tools
-       export CC="gcc"
-       export CXX="c++"
-
-       make_conf="BOOT_LDFLAGS=\"-static\" bootstrap"
+       # use host system tools
+       hdw_arch_prefix=""
+       . ./scripts/optimization
+       unset CFLAGS
 
        post_install()  {
                ln -sf gcc $prefix/bin/cc