1NOMAN= 2NOSHARED= 3WARNS?= 6 4 5# Define RESCUE for make and compiler 6CRUNCH_BUILDOPTS+= -DRESCUE 7CRUNCH_CFLAGS+= -DRESCUE 8 9# Crunchgen needs to use the right libraries. Normally if DESTDIR is 10# specified it should also use the target binaries, however if run 11# from buildworld DESTDIR points to the obj world_x86_64 which is not 12# entirely populated. In that situation we leave the path alone, it 13# will point to the cross tools. 14# 15.if defined(DESTDIR) && ${DESTDIR} != "" && ${DESTDIR} != "/" 16.if !defined(WORLDBUILD) 17CRUNCH_CFLAGS+= --sysroot=${DESTDIR} 18CRUNCHENV+= PATH=${DESTDIR}/sbin:${DESTDIR}/bin:${DESTDIR}/usr/sbin:${DESTDIR}/usr/bin 19.endif 20_SHLIBDIRPREFIX= ${DESTDIR} 21.endif 22 23# Apply the same flags to link the crunched binary because crunchgen(1) does 24# not recognize ${CRUNCH_CFLAGS}. 25CRUNCH_LINKOPTS+= ${CRUNCH_CFLAGS} 26 27# Use soft links to create the crunched program links 28#CRUNCH_USE_SYMLINKS= 29