on mingw target i can't get libgcc_s.a path. the path to libgcc.a is returned correctly:
$ i686-pc-mingw32-gcc -print-file-name=libgcc.a /local/devel/toolchain44/i686-pc-mingw32.host64/lib/gcc/i686-pc-mingw32/4.4.0/libgcc.a but the libgcc_s.a case doesn't work. it returns: $ i686-pc-mingw32-gcc -print-file-name=libgcc_s.a libgcc_s.a while file exists in /local/devel/toolchain44/i686-pc-mingw32.host64/lib/ another problem is to get libgcc_s-*.dll path. in this case: /local/devel/toolchain44/i686-pc-mingw32.host64/bin/libgcc_s_dw2-1.dll $ i686-pc-mingw32-gcc -v Using built-in specs. Target: i686-pc-mingw32 Configured with: ../configure --target=i686-pc-mingw32 --with-arch=i686 --prefix=/local/devel/toolchain44/i686-pc-mingw32.host64 --with-sysroot=/local/devel/toolchain44/i686-pc-mingw32.host64 --libdir=/local/devel/toolchain44/i686-pc-mingw32.host64/lib --libexecdir=/local/devel/toolchain44/i686-pc-mingw32.host64/lib --with-slibdir=/local/devel/toolchain44/i686-pc-mingw32.host64/lib --with-gmp-include=/home/pawels/toolchain/trunk/gcc-math-runtime/include --with-gmp-lib=/home/pawels/toolchain/trunk/gcc-math-runtime/lib --with-mpfr-include=/home/pawels/toolchain/trunk/gcc-math-runtime/include --with-mpfr-lib=/home/pawels/toolchain/trunk/gcc-math-runtime/lib --disable-multilib --disable-nls --disable-libgomp --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --with-pic --enable-c99 --enable-long-long --disable-win32-registry --enable-threads=win32 --disable-sjlj-exceptions --enable-shared --enable-fully-dynamic-string --enable-__cxa_atexit --enable-languages=c,c++ --disable-symvers --with-pic --with-long-double-128 --disable-cld --disable-bootstrap Thread model: win32 gcc version 4.4.0 20090407 (prerelease) (GCC) -- Summary: -print-file-name doesn't work on mingw in 100%. Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pluto at agmk dot net GCC build triplet: *-gnu-linux GCC host triplet: *-gnu-linux GCC target triplet: *-pc-mingw32 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39694