summaryrefslogtreecommitdiff
path: root/libexec/ld.elf_so/arch/riscv/Makefile.inc
blob: 74064faecd192c4d523eb7f69c8df1af001fa25b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# $NetBSD: Makefile.inc,v 1.1 2014/09/19 17:36:25 matt Exp $

SRCS+=		rtld_start.S mdreloc.c

# XXX Should not be in CPPFLAGS!
CPPFLAGS+=	-fpic

.if ${LDELFSO_MACHINE_ARCH} == "riscv64"
CPPFLAGS+=	-DELFSIZE=64
.else
CPPFLAGS+=	-DELFSIZE=32
.endif
CPPFLAGS+=	-DHAVE_INITFINI_ARRAY

LDFLAGS+=	-Wl,-e,_rtld_start