summaryrefslogtreecommitdiff
path: root/libexec/ld.so/riscv64/Makefile.inc
blob: 14bfabf60cf83d92c258d80c41a9f784d096b248 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#	$OpenBSD: Makefile.inc,v 1.2 2021/06/26 14:47:54 kettenis Exp $

CFLAGS += -fpic
CFLAGS += -march=rv64imac	# this prevents the use of float in ld.so
AFLAGS += -D_STANDALONE
AFLAGS += -march=rv64imac
CPPFLAGS += -I${.CURDIR}/../../lib/libc/arch/riscv64
LD_SCRIPT = ${.CURDIR}/${MACHINE_CPU}/ld.script

# Suppress DWARF2 warnings
DEBUG?= -gdwarf-4

RELATIVE_RELOC=R_RISCV_RELATIVE