|
From: NightStrike <nig...@gm...> - 2009-10-03 23:41:58
|
On Sat, Oct 3, 2009 at 5:24 PM, Ronald Pijnacker <pij...@ds...> wrote: > Hi all, > > I've been trying to get llvm-gcc compiled under mingw. > Since I'll be updating it frequently, I thought it would be a > good idea to install it to a separate directory. > > After (finally) figuring out that I needed to use --with-sysroot > to get it to build correctly, I'm now faced with a problem while > linking: > > C:\msys\mingw\bin/ld.exe: this linker was not configured to use sysroots > collect2: ld returned 1 exit status > > Any ideas on how to solve this? > Do I need to recompile the binutils and enable some switch for this? When you configure binutils, use the --with-sysroot option. This is how binutils (and gcc) should pretty much always be built these days, with the current configury system that is present in sourceware's top level configure. You point binutils to the location of the sysroot, and you get bonus points if the sysroot is equal to or decendent from your prefix. |