------- Comment #6 from aflyhorse at foxmail dot com  2010-03-22 01:00 -------
In my recent build
I configured the binutils as:
../src/configure --target=x86_64-w64-mingw32
--enable-targets=x86_64-w64-mingw32,i686-w64-mingw32 --disable-shared
--enable-static --disable-nls --with-mpc=/local --with-gmp=/local
--with-mpfr=/local --with-ppl=/local --with-cloog=/local --prefix=/mingw64
--with-sysroot=/mingw64 CFLAGS="-O3 -fomit-frame-pointer -pipe -march=k8
-mfpmath=sse -mmmx -m3dnow -m64 -Wa,-march=k8" LDFLAGS="-s -Wl,--as-needed"

and the gcc as:
 ../src/configure --target=x86_64-w64-mingw32 --enable-targets=all
--enable-multilib --enable-64bit --prefix=/mingw64 --with-sysroot=/mingw64
--disable-shared --enable-static --disable-nls
--enable-version-specific-runtime-libs --with-dwarf --with-mpc=/local
--with-mpfr=/local --with-gmp=/local --with-ppl=/local --with-cloog=/local
--enable-fully-dynamic-string --enable-languages=c,c++,fortran,java
--disable-libgomp --enable-libjava-multilib --with-host-libstdcxx='-lstdc++
-lsupc++' --with-pkgversion='LunarShaddow - for my Helen' CFLAGS='-O3
-fomit-frame-pointer -pipe -march=k8 -mfpmath=sse -mmmx -m3dnow -Wa,-march=k8'
LDFLAGS='-s -Wl,--as-needed'

Just omit the optimization options and you'll find the use of prefix and
sysroot.
ensure that you use the same sysroot while building binutils.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42886

Reply via email to