- 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.
This commit is contained in:
parent
aef5eb5f59
commit
945c4dec66
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue