This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Questions on CC_FOR_BUILD/CFLAGS_FOR_BUILD/BUILD_CFLAGS


Currently, $(CC_FOR_BUILD) has been used with $(CFLAGS),
$(BUILD_CFLAGS) and $(CFLAGS_FOR_BUILD). It is wrong to use
$(CFLAGS) with $(CC_FOR_BUILD) for canadian cross compile:

./bfd/doc/Makefile.in:  $(CC_FOR_BUILD) -c -I.. -I$(srcdir)/..
-I$(srcdir)/../../include -I$(srcdir)/../../intl -I../../intl $(H_CFLAGS)
$(CFLAGS) $(srcdir)/chew.c
./binutils/Makefile.in: $(CC_FOR_BUILD) $(CFLAGS) $(LDFLAGS) -o $@ sysinfo.o
syslex.o 
./binutils/Makefile.in:   $(CC_FOR_BUILD) -c -I. $(CFLAGS)  syslex.c  ; \
./binutils/Makefile.in:   $(CC_FOR_BUILD) -c -I. -I$(srcdir) $(CFLAGS)
$(srcdir)/syslex.c ;\
./binutils/Makefile.in:   $(CC_FOR_BUILD) -c -I. $(CFLAGS)  sysinfo.c  ; \
./binutils/Makefile.in:   $(CC_FOR_BUILD) -c -I. $(CFLAGS) $(srcdir)/sysinfo.c
; \
./sim/z8k/Makefile.in:  $(CC_FOR_BUILD) -c $(CFLAGS) $(HDEFINES) $(CSEARCH)
$(CSWITCHES) $(srcdir)/writecode.c
./sim/z8k/Makefile.in:  $(CC_FOR_BUILD) -c $(CFLAGS) $(HDEFINES) $(CSEARCH)
$(CSWITCHES) $(srcdir)/quick.c -o bquick.o

Also it is quite annoying to have both BUILD_CFLAGS and CFLAGS_FOR_BUILD.
CFLAGS_FOR_BUILD is mentioned in the top-level Makefile, but is not
passed down to any directories, except for gcc.


H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]