Help needed using GNU linker, ld.
I've compiled latest mspgcc (uniarch, mspgcc-20110612) on Windows box.
But the problem is, ld does have hardcoded paths. When I move mspgcc from the directory it was compiled into attempt to link results in ld not finding ldscripts:
**** Build of configuration Debug for project blinky ****
'Building file: ../main.c'
'Invoking: Cross GCC Compiler'
msp430-gcc -I"C:\MSPGCC4\msp430\include" -Os -g3 -Wall -c -fmessage-length=0 -mmcu=msp430g2452 -MMD -MP -MF"main.d" -MT"main.d" -o"main.o" "../main.c"
'Finished building: ../main.c'
'Building target: blinky.elf'
'Invoking: Cross GCC Linker'
msp430-gcc -L"C:\MSPGCC4\msp430\lib" -mmcu=msp430g2452 -o"blinky.elf" ./main.o
c:/mspgcc4/bin/../lib/gcc/msp430/4.5.2/../../../../msp430/bin/ld.exe: cannot open linker script file memory.x: No such file or directory
collect2: ld returned 1 exit status
make: *** [blinky.elf] Error 1
If i copy just the msp430/lib directory in to the old location where toolchain was built everything compiles/links ok.
BTW, if someone is interested in building mspgcc under windows I've a preliminary draft Windows batch file to do this (w/ mspgcc-20110612). It's based on Sergio Campama's Ubuntu tutorial with some Windows-specific changes.
Prerequisites are MinGW+MSYS installation in C:\MinGW and GNU wget in path.
Everything else needed should be downloaded/unpacked by this script.
UPD: Can't add this batch file with sourceforge and GNU URL-s for fetching packages, too spammy - account was deleted immediately