summaryrefslogtreecommitdiff
path: root/sysdeps/riscv/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/riscv/Makefile')
-rw-r--r--sysdeps/riscv/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/sysdeps/riscv/Makefile b/sysdeps/riscv/Makefile
new file mode 100644
index 0000000000..20a9968106
--- /dev/null
+++ b/sysdeps/riscv/Makefile
@@ -0,0 +1,7 @@
+ifeq ($(subdir),misc)
+sysdep_headers += sys/asm.h
+endif
+
+# RISC-V's assembler also needs to know about PIC as it changes the definition
+# of some assembler macros.
+ASFLAGS-.os += $(pic-ccflag)