exec.mk revision 1.1
1# $NetBSD: exec.mk,v 1.1 2016/12/23 10:19:57 mrg Exp $ 2 3# this makefile fragment can be included to modify the default 4# ABI a program is compiled with. this is designed to be used 5# by tools that must match the kernel image like savecore(8) 6# and kvm(3) using tools. 7 8# currently this file is used by these Makefiles: 9# 10# sbin/savecore/Makefile 11# usr.bin/fstat/Makefile 12# usr.bin/netstat/Makefile 13# usr.bin/pmap/Makefile 14# usr.bin/systat/Makefile 15# usr.sbin/crash/Makefile 16# usr.sbin/kgmon/Makefile 17# usr.sbin/pstat/Makefile 18# usr.sbin/trpt/Makefile 19# 20# of these, savecore, crash and kgmon are the only ones that 21# can be considered "not a bug". all the *stat tools should 22# be converted to use sysctl(3) on the running kernel, and 23# anyone who needs kvm-access on crash dumps can build their 24# own 64 bit version as necessary. 25 26# mips64 defaults to 32 bit userland, but with a 64 bit kernel 27# most kvm-using tools are happier with 64 bit. 28 29.if ${MACHINE_ARCH} == "mips64el" || ${MACHINE_ARCH} == "mips64eb" 30 31# XXX -pie makes n64 crash 32NOPIE=1 33# XXX interesting dynamic binaries crash (hello.c works.) 34LDSTATIC=-static 35 36. include <bsd.own.mk> 37 38. if ${MKCOMPAT} != "no" && !defined(RESCUEDIR) 39. include "${.PARSEDIR}/mips64/64/bsd.64.mk" 40. endif # ${MKCOMPAT} != "no" 41 42.endif # mips64 43