Skip to contentSkip to conversation

Specify the as path when gcc runs

DISCUSSION Long Li 3 participants 3 messages Feb 5, 2003 MIPS

lore
Share & tools
lore

Long Li

author
#0 lore raw

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

#1 lore raw
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

#2 lore raw
In reply to Long Li
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        +