How to define CROSSCOMPILER to get with $(CROSSCOMPILER)gcc my preferd gcc compiler

tamara1996

New Member
Joined
Nov 14, 2020
Messages
1
Reaction score
0
Credits
16
Hello Community,

i struggle with one problem for hours, however I decided to ask you for recommendation.

The problem I have is that in one Makefile I found a command like $(CROSSCOMPILER)gcc which calls the gcc compiler from specific path.
I thought that I just need to define CROSSCOMPILER as the the path like :
export CROSSCOMPILER=$HOME/opt/cross/bin/$TARGET-
where $TARGET= x86_64-elf.
Then I hoped $(CROSSCOMPILER)gcc --version would call $HOME/opt/cross/bin/$TARGET-gcc but it returns:
CROSSCOMPILER: Command not found:

Can you help me out of this problem? How can I define a command called CROSSCOMPILER to solve the problem ?


many greetings,


EDIT: im using Ubuntu 20.04 LTS
 
Last edited:


Latest posts

Top