Changeset View
Changeset View
Standalone View
Standalone View
share/mk/local.meta.sys.mk
Show First 20 Lines • Show All 238 Lines • ▼ Show 20 Lines | |||||
.if ${MACHINE} == "host" | .if ${MACHINE} == "host" | ||||
.for var in ${TOOLCHAIN_VARS} | .for var in ${TOOLCHAIN_VARS} | ||||
${var}= ${HOST_${var}} | ${var}= ${HOST_${var}} | ||||
.endfor | .endfor | ||||
.endif | .endif | ||||
.if ${MACHINE:Nhost:Ncommon} != "" && ${MACHINE} != ${HOST_MACHINE} | .if ${MACHINE:Nhost:Ncommon} != "" && ${MACHINE} != ${HOST_MACHINE} | ||||
# cross-building | # cross-building | ||||
.if !defined(FREEBSD_REVISION) | |||||
FREEBSD_REVISION!= sed -n '/^REVISION=/{s,.*=,,;s,",,g;p; }' ${SRCTOP}/sys/conf/newvers.sh | |||||
.export FREEBSD_REVISION | |||||
.endif | |||||
CROSS_TARGET_FLAGS= -target ${MACHINE_ARCH}-unknown-freebsd${FREEBSD_REVISION} | CROSS_TARGET_FLAGS= -target ${MACHINE_ARCH}-unknown-freebsd${FREEBSD_REVISION} | ||||
CFLAGS+= ${CROSS_TARGET_FLAGS} | CFLAGS+= ${CROSS_TARGET_FLAGS} | ||||
ACFLAGS+= ${CROSS_TARGET_FLAGS} | ACFLAGS+= ${CROSS_TARGET_FLAGS} | ||||
LDFLAGS+= -Wl,-m -Wl,elf_${MACHINE_ARCH}_fbsd | LDFLAGS+= -Wl,-m -Wl,elf_${MACHINE_ARCH}_fbsd | ||||
.endif | .endif | ||||
META_MODE+= missing-meta=yes | META_MODE+= missing-meta=yes | ||||
.if empty(META_MODE:Mnofilemon) | .if empty(META_MODE:Mnofilemon) | ||||
META_MODE+= missing-filemon=yes | META_MODE+= missing-filemon=yes | ||||
.endif | .endif |