Specify the as path when gcc runs
Hi,
Is there a way that I can specify the path for 'as' on the fly when I use gcc? I have a MIPS cross compiler xgcc on Redhat 7.1. However, in the Makefile, I use both the native compiler as well as the crosscompiler. They both search the path to find the as to use, which is incorrect. I don't want to rebuild the crosscompiler to specify the path for as using --with-as=pathname, and wonder if I can specify the as path for the crosscompiler on the fly?
Thanks a lot!
Long
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
Quoted 2 lines · Long Li
Is there a way that I can specify the path for 'as' on the fly when I use gcc?
-Ya,directory
-- greg
Quoted 2 lines · Long Li
Is there a way that I can specify the path for 'as' on the fly when I use gcc? I have a MIPS cross compiler
Use "-B<path>". You may use "-print-prog-name=as" to get feedback to be
sure the right binary is picked.
Signature · 3 lines
+ Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: [email protected], PGP key available +