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