Home | History | Annotate | Line # | Download | only in compat
exec.mk revision 1.4
      1 #	$NetBSD: exec.mk,v 1.4 2018/09/20 02:51:21 macallan 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.bin/vmstat/Makefile
     16 #   usr.sbin/crash/Makefile
     17 #   usr.sbin/kgmon/Makefile
     18 #   usr.sbin/pstat/Makefile
     19 #   usr.sbin/trpt/Makefile
     20 #
     21 # of these, savecore, crash and kgmon are the only ones that
     22 # can be considered "not a bug".  all the *stat tools should
     23 # be converted to use sysctl(3) on the running kernel, and
     24 # anyone who needs kvm-access on crash dumps can build their
     25 # own 64 bit version as necessary.
     26 
     27 # mips64 defaults to 32 bit userland, but with a 64 bit kernel
     28 # most kvm-using tools are happier with 64 bit.
     29 
     30 .if ${MACHINE_ARCH} == "mips64el" || (${MACHINE_ARCH} == "mips64eb" && ${MACHINE} != "sgimips")
     31 
     32 # XXX -pie makes n64 crash
     33 NOPIE=1
     34 # XXX interesting dynamic binaries crash (hello.c works.)
     35 LDSTATIC=-static
     36 
     37 . include <bsd.own.mk>
     38 
     39 . if ${MKCOMPAT} != "no" && !defined(CRUNCHEDPROG)
     40 .  include "${.PARSEDIR}/mips64/64/bsd.64.mk"
     41 . endif # ${MKCOMPAT} != "no"
     42 
     43 .endif # mips64
     44