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