Home | History | Annotate | Line # | Download | only in compat
exec.mk revision 1.3.8.1
      1  1.3.8.1  martin #	$NetBSD: exec.mk,v 1.3.8.1 2021/01/08 13:02:56 martin 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.3.8.1  martin #   external/bsd/ipf/Makefile.inc 
     11      1.1     mrg #   sbin/savecore/Makefile
     12      1.1     mrg #   usr.bin/fstat/Makefile
     13      1.1     mrg #   usr.bin/netstat/Makefile
     14      1.1     mrg #   usr.bin/pmap/Makefile
     15      1.1     mrg #   usr.bin/systat/Makefile
     16      1.2     mrg #   usr.bin/vmstat/Makefile
     17      1.1     mrg #   usr.sbin/crash/Makefile
     18      1.1     mrg #   usr.sbin/kgmon/Makefile
     19      1.1     mrg #   usr.sbin/pstat/Makefile
     20      1.1     mrg #   usr.sbin/trpt/Makefile
     21      1.1     mrg #
     22      1.1     mrg # of these, savecore, crash and kgmon are the only ones that
     23      1.1     mrg # can be considered "not a bug".  all the *stat tools should
     24      1.1     mrg # be converted to use sysctl(3) on the running kernel, and
     25      1.1     mrg # anyone who needs kvm-access on crash dumps can build their
     26  1.3.8.1  martin # own 64 bit version as necessary.  ipfilter doesn't use
     27  1.3.8.1  martin # 64-bit alignment/size safe structures.
     28  1.3.8.1  martin # 
     29      1.1     mrg 
     30      1.1     mrg # mips64 defaults to 32 bit userland, but with a 64 bit kernel
     31      1.1     mrg # most kvm-using tools are happier with 64 bit.
     32      1.1     mrg 
     33      1.1     mrg .if ${MACHINE_ARCH} == "mips64el" || ${MACHINE_ARCH} == "mips64eb"
     34      1.1     mrg 
     35      1.1     mrg # XXX -pie makes n64 crash
     36      1.1     mrg NOPIE=1
     37      1.1     mrg # XXX interesting dynamic binaries crash (hello.c works.)
     38      1.1     mrg LDSTATIC=-static
     39      1.1     mrg 
     40      1.1     mrg . include <bsd.own.mk>
     41      1.1     mrg 
     42      1.3   skrll . if ${MKCOMPAT} != "no" && !defined(CRUNCHEDPROG)
     43      1.1     mrg .  include "${.PARSEDIR}/mips64/64/bsd.64.mk"
     44      1.1     mrg . endif # ${MKCOMPAT} != "no"
     45      1.1     mrg 
     46      1.1     mrg .endif # mips64
     47