Index: chapter.xml =================================================================== --- chapter.xml +++ chapter.xml @@ -552,11 +552,48 @@ and NOT_FOR_ARCHS_REASON_ARCH. + + + Futher shorthands are available (cf. + bsd.port.mk): + + IGNORE_i386= does not run on 32-bit architectures + + BROKEN_powerpc64= not ported to powerpc64 yet + + + + + + + Wordsize Considerations + + + Some ports are affected by features particular to some + of &os;'s supported architectures (see + TARGETS in + base/head/Makefile). + + + Here are some examples of usage: + + # modify CXXFLAGS on 32-bit archs +.if ${ARCH} == armv6 || ${ARCH} == armv7 || ${ARCH} == i386 || ${ARCH} == mips || ${ARCH} == powerpc || ${ARCH} == powerpcspe +CXXFLAGS+= ... +.endif + + # modify LDFLAGS on 64-bit archs +.if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH} == mips64 || ${ARCH} == powerpc64 || ${ARCH} == sparc64 || ${ARCH} == riscv +LDFLAGS+= ... +.endif + + + i386-Specific Considerations If a port fetches i386 binaries and installs them,