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