diff options
| author | ryo <ryo@NetBSD.org> | 2022-10-14 19:42:13 +0000 |
|---|---|---|
| committer | ryo <ryo@NetBSD.org> | 2022-10-14 19:42:13 +0000 |
| commit | b5b8ae6d18a1df6a42f7bbfec3e2d2d293a92be5 (patch) | |
| tree | 85aa9c46358ea5b7b08790f9581aa23a0d3a4f6b /share/examples | |
| parent | f6f448dd02d2554a511324d48cc6d011578725c6 (diff) | |
- Since the example is for a cpu, use MACHINE_CPU instead of MACHINE_ARCH.
- In some cpu, it is necessary to use GOT to make it a PIE,
which are too complicated as examples, so MKPIE=no by default.
Diffstat (limited to 'share/examples')
| -rw-r--r-- | share/examples/asm/hello/Makefile.inst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/share/examples/asm/hello/Makefile.inst b/share/examples/asm/hello/Makefile.inst index d7b7e6e7acd..9e00264e15d 100644 --- a/share/examples/asm/hello/Makefile.inst +++ b/share/examples/asm/hello/Makefile.inst @@ -1,12 +1,13 @@ -# $NetBSD: Makefile.inst,v 1.1 2011/11/12 01:18:41 jmmv Exp $ +# $NetBSD: Makefile.inst,v 1.2 2022/10/14 19:42:13 ryo Exp $ .include <bsd.own.mk> -.if exists(${MACHINE_ARCH}.s) +.if exists(${MACHINE_CPU}.s) PROG= hello MAN= # empty LDFLAGS= -nostdlib -SRCS= ${MACHINE_ARCH}.s +SRCS= ${MACHINE_CPU}.s +MKPIE= no .endif .include <bsd.prog.mk> |
