Move -I of cc_tool/ before the GCCDIR ones.
When I imported EGCS into contrib/egcs/ I failed to prune out egcs/gcc/cp/hash.h which is generated from gxx.gperf. Thus `cc1plus' wasn't using the hash.h we generated by cc/cc_tools/Makefile, but rather the one in egcs/gcc/cp/. When I imported contrib/gcc/ I did prune gcc/cp/hash.h. Unfortunately the GCC maintainers weren't smart on their file nameing and there is also a egcs/gcc/hash.h (name overloading does NOT work as well on the filesystem as in C++...). Due to the -I ordering we are were then picking up gcc/hash.h when compiling `cc1plus'.
This commit is contained in:
parent
3598f19234
commit
d0248b64a3
@ -26,7 +26,6 @@ USE_EGCS_HAIFA=1
|
||||
version!= sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${GCCDIR}/version.c
|
||||
#version!= sed -e 's/.*\(egcs-[0-9\.]*\).*/\1/' < ${GCCDIR}/version.c
|
||||
|
||||
CFLAGS+= -I${GCCDIR} -I${GCCDIR}/config
|
||||
CFLAGS+= -DFREEBSD_NATIVE -DHAVE_CONFIG_H
|
||||
CFLAGS+= -DDEFAULT_TARGET_VERSION=\"$(version)\"
|
||||
CFLAGS+= -DDEFAULT_TARGET_MACHINE=\"$(target)\"
|
||||
@ -47,6 +46,7 @@ CFLAGS+= -DCROSS_COMPILE
|
||||
CFLAGS+= -I${.OBJDIR}/../cc_tools
|
||||
.endif
|
||||
CFLAGS+= -I${.CURDIR}/../cc_tools
|
||||
CFLAGS+= -I${GCCDIR} -I${GCCDIR}/config
|
||||
|
||||
.if exists(${.OBJDIR}/../cc_int)
|
||||
LIBDESTDIR= ${.OBJDIR}/../cc_int
|
||||
|
Loading…
Reference in New Issue
Block a user