|
From: NightStrike <nig...@gm...> - 2009-10-03 23:43:08
|
On Sat, Oct 3, 2009 at 7:41 PM, NightStrike <nig...@gm...> wrote: > 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. > To your other question, if binutils is delivered by mingw.org using the old outdated build methods, then yes, you'll have to rebuild yourself. It should all build OOTB though for your system. You shouldn't need any options other than prefix and --with-sysroot. |