aboutsummaryrefslogtreecommitdiff
path: root/makepkg.d/makepkg.riscv64.conf
diff options
context:
space:
mode:
Diffstat (limited to 'makepkg.d/makepkg.riscv64.conf')
-rw-r--r--makepkg.d/makepkg.riscv64.conf21
1 files changed, 21 insertions, 0 deletions
diff --git a/makepkg.d/makepkg.riscv64.conf b/makepkg.d/makepkg.riscv64.conf
new file mode 100644
index 0000000..d412d46
--- /dev/null
+++ b/makepkg.d/makepkg.riscv64.conf
@@ -0,0 +1,21 @@
+#########################################################################
+# ARCHITECTURE, COMPILE FLAGS
+#########################################################################
+#
+CARCH="riscv64"
+CHOST="riscv64-unknown-linux-gnu"
+
+#-- Compiler and Linker Flags
+#CPPFLAGS=""
+CFLAGS="-march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions \
+ -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \
+ -fstack-clash-protection"
+CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
+LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
+#RUSTFLAGS="-C opt-level=2"
+#-- Make Flags: change this for DistCC/SMP systems
+MAKEFLAGS="-j$(nproc)"
+#-- Debugging flags
+DEBUG_CFLAGS="-g -fvar-tracking-assignments"
+DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
+#DEBUG_RUSTFLAGS="-C debuginfo=2"