Mike Frysinger wrote:
On Friday 21 December 2007, riazrahaman wrote:
I have move the config.mk inclusion to the start of a the makefile.

The reason for doing this is that the config.mk would have configuration
settings for my custom tool chain which I would want to set first.

which doesnt make sense why you would move it. config.mk comes *after* the defaults so people can freely modify the defaults. by you moving it to the beginning, that explicit control is lost.
-mike
   As per the comments in the Makefile

/_*# Alternately, to override them by editing this file, uncomment the
# following lines:*
_#   CROSS_COMPILER=/opt/ppc64/powerpc64-linux/bin/powerpc64-linux-
#   CROSS_CFLAGS= -mpowerpc64
#   LDFLAGS=-static
#   LOADLIBES=-lpthread -lc -lresolv -lnss_dns -lnss_files -lm -lc
#   LIB_DIR=/lib64
#   export LOADLIBES LIB_DIR
#
# Or, you can save all your settings into the local '_*config.mk*_' file.
# Just use the same syntax as above for the Makefile.

/ If I place my settings for CROSS_COMPILER in config.mk which gets included after

/ifdef CROSS_COMPILE
CROSS_COMPILER = $(CROSS_COMPILE)
endif
ifdef CROSS_COMPILER
CC=$(CROSS_COMPILER)gcc
AR=$(CROSS_COMPILER)ar
endif
...
...
_*-include config.mk*_
/
then "CROSS_COMPILE" will not be set.


Or is there something that I am missing here?
-RiaZ
/
/




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to