------- Comment #5 from dannysmith at users dot sourceforge dot net 2007-10-05 07:03 ------- (In reply to comment #4) > > However, for some reasons, the path to ld is detected as: > > c:/Docume~1/gdr/Desktop/sandbox/eval-build/i686-pc-mingw32/libstdc++-v3/c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../mingw32/bin/ld.exe > > which is not right. I suspect the real path is > > c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../mingw32/bin/ld.exe > > but somehow it is appended to the build directory path. Furthermore, it > looks a very complicated path name. >
How do you configure? Combined binutils/gcc in-tree build with this configuration ../src/configure --host=mingw32 --build=mingw32 --target=mingw32 --with-arch=i486 --with-cpu=generic --disable-werror --prefix=/mingw --enable-threads --disable-nls --enable-languages=c,c++,objc,obj-c++,fortran --disable-win32-registry --enable-libstdcxx-debug --enable-cxx-flags='-fno-function-sections -fno-data-sections' --enable-version-specific-runtime-lib --enable-libgomp --disable-sjlj-exceptions --enable-shared --disable-symvers works for me. Configure correctly sets ORIGINAL_LD_FOR_TARGET="../ld/ld-new.exe" If I move binutils out of tree then I get ORIGINAL_LD_FOR_TARGET="/mingw/mingw32/bin/ld" which also works correctly. Are you using MSYS or cygwin bash and tools? Danny -- dannysmith at users dot sourceforge dot net changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dannysmith at users dot | |sourceforge dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33603