Article 5B9J8 Makefile does not find my custom Gcc installation

Makefile does not find my custom Gcc installation

by
coltson
from LinuxQuestions.org on (#5B9J8)
Hello. I installed a Gcc on a custom dir on /media/34GB/Arquivos-de-Programas-Linux and then proceeded to remove the default Gcc that I had. Then I created a symbolic link to it and g++ on /usr/local/bin.

However, when I try to compile a program, calling Make, it says:

Code:make: cc: Command not found about ten times, then proceeds to do some stuff and finally says

Code:make install --directory=libnslog HOST= PREFIX=/media/34GB/Arquivos-de-Programas-Linux/netsurf-all-3.10/inst-gtk2 Q=@ WARNFLAGS='-Wall -W -Wno-error' DESTDIR=
make[1]: cc: Command not found
make[1]: Entering directory `/media/34GB/Arquivos-de-Programas-Linux/netsurf-all-3.10/libnslog'
/media/34GB/Arquivos-de-Programas-Linux/netsurf-all-3.10/inst-gtk2/share/netsurf-buildsystem/makefiles/Makefile.tools:68: *** "Failed to guess HOST". Stop.
make[1]: Leaving directory `/media/34GB/Arquivos-de-Programas-Linux/netsurf-all-3.10/libnslog'
make: *** [/media/34GB/Arquivos-de-Programas-Linux/netsurf-all-3.10/inst-gtk2/build-stamp] Error 2Reading the Makefile, it does not directly defines a CC variable, however it does this:

Code:# The system actually doing the build
BUILD ?= $(shell $(CC) -dumpmachine)
# The host we are targetting
HOST ?= $(BUILD)So, what can I do to make it detect the symbolic link to gcc on /usr/local/bin? Rewrite BUILD? If so, how I should do so?

Thanks for the input.latest?d=yIl2AUoC8zA latest?i=yEAY5SH91cM:Mnxwu_fGC34:F7zBnMy latest?i=yEAY5SH91cM:Mnxwu_fGC34:V_sGLiP latest?d=qj6IDK7rITs latest?i=yEAY5SH91cM:Mnxwu_fGC34:gIN9vFwyEAY5SH91cM
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments