Altera_Forum
Honored Contributor
20 years agohow I "set the BUILD_CC environment variable "?
hi all:
I am porting ncurses-5.5 to nios2 uclinux now. Frist I edit configure.sub add " | nios2 " in the "case $basic_machine in" then I run: ./configure --build=nios2 --with-build-cc=nios2-linux-uclibc-gcc but I check configure information and I find the message as bollow: checking whether we are cross compiling... no I checked the makefile ,I find the cc setting still use gcc, not nios2-linux-uclinbc-gcc CC = gcc CPP = gcc -E CFLAGS = -O2 I read the install of ncures5.5. I got some information about crosscompile as bellow: BUILDING NCURSES WITH A CROSS-COMPILER Ncurses can be built with a cross-compiler. Some parts must be built with the host's compiler since they are used for building programs (e.g., ncurses/make_hash and ncurses/make_keys) that generate tables that are compiled into the ncurses library. The essential thing to do is set the BUILD_CC environment variable to your host's compiler, and run the configure script configuring for the cross-compiler. The configure options --with-build-cc, etc., are provided to make this simpler. Since make_hash and make_keys use only ANSI C features, it is normally not necessary to provide the other options such as --with-build-libs, but they are provided for completeness. Who can tell me how I "set the BUILD_CC environment variable to my host's compiler" ? Thank a lot!