In writing several Makefiles, I come across a recurring problem. I don't have (and don't want) "/cygdrive/c/Program Files/mspgcc/bin" in my path (using Cygwin here, in case that's not obvious). However, msp430-gcc tries to exec msp430-ld and can't find it.
The solution I'm looking for is to export PATH in a Makefile. I've tried a couple variants. PATH=$(TOOLPATH):$(PATH) then 'export PATH'. For some reason, make can't find msp430-gcc (I played around with a similiar problem a few months ago, and localized it to a Cygwin problem either not exporting or not inheriting variables correctly) I've tried 'export PATH=$(TOOLPATH):$(PATH)', but make generates a circular reference error. I'm not sure of the implications of this, but it seems that since msp430-gcc execs msp430-ld, it should attempt to exec it normally, then if it fails, try execing it with any explicit path information that msp430-gcc was invoked with. --jc