Need CXXFLAGS_LAST and LDFLAGS_LAST
This commit is contained in:
@@ -140,16 +140,18 @@ STAGE_INCSDIR= ${STAGE_OBJTOP}${INCSDIR:U/include}
|
|||||||
CFLAGS_LAST+= -nostdinc
|
CFLAGS_LAST+= -nostdinc
|
||||||
.endif
|
.endif
|
||||||
CFLAGS_LAST+= -isystem ${STAGE_OBJTOP}/usr/include -isystem ${STAGE_OBJTOP}/include
|
CFLAGS_LAST+= -isystem ${STAGE_OBJTOP}/usr/include -isystem ${STAGE_OBJTOP}/include
|
||||||
LDFLAGS+= -B${STAGE_LIBDIR} -L${STAGE_LIBDIR}
|
LDFLAGS_LAST+= -B${STAGE_LIBDIR} -L${STAGE_LIBDIR}
|
||||||
|
CXXFLAGS_LAST+= -isystem ${STAGE_OBJTOP}/usr/include/c++/${GCCVER:U4.2}
|
||||||
.else
|
.else
|
||||||
# if ld suppored sysroot, this would suffice
|
# if ld suppored sysroot, this would suffice
|
||||||
CFLAGS_LAST+= --sysroot=${STAGE_OBJTOP} -isystem ${STAGE_OBJTOP}/include
|
CFLAGS_LAST+= --sysroot=${STAGE_OBJTOP} -isystem ${STAGE_OBJTOP}/include
|
||||||
.endif
|
.endif
|
||||||
.endif
|
.endif
|
||||||
|
.if ${USE_META:Uyes} == "yes"
|
||||||
.include "meta.sys.mk"
|
.include "meta.sys.mk"
|
||||||
|
.endif
|
||||||
|
|
||||||
# most dirs can be satisfied with one Makefile.depend ?
|
# most dirs can be satisfied with one Makefile.depend
|
||||||
.undef .MAKE.DEPENDFILE
|
.undef .MAKE.DEPENDFILE
|
||||||
.MAKE.DEPENDFILE_PREFERENCE = \
|
.MAKE.DEPENDFILE_PREFERENCE = \
|
||||||
${.MAKE.DEPENDFILE_PREFIX} \
|
${.MAKE.DEPENDFILE_PREFIX} \
|
||||||
|
|||||||
Reference in New Issue
Block a user