tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
HOSTPROG
I'm looking at:
.if !defined(HOSTPROG) && !defined(HOSTLIB)
. if ${DESTDIR} != ""
CPPFLAGS+= --sysroot=${DESTDIR}
LDFLAGS+= --sysroot=${DESTDIR}
. else
CPPFLAGS+= --sysroot=/
LDFLAGS+= --sysroot=/
. endif
.endif
from bsd.own.mk.
While the intent intent seems to be to only add --sysroot when cross
compiling (i.e., not when building a native tool or library), I'm
finding that, instead, --sysroot is always added, only to have
tools/Makefile.host strip it off with:
HOST_CPPFLAGS:= ${HOST_CPPFLAGS:N-Wp,-iremap,*:N--sysroot=*}
?
Andrew
Home |
Main Index |
Thread Index |
Old Index