aboutsummaryrefslogtreecommitdiff
path: root/makepkg.d/makepkg.aarch64.conf
diff options
context:
space:
mode:
authorCoelacanthus <[email protected]>2021-10-24 21:08:00 +0800
committerGitHub <[email protected]>2021-10-24 21:08:00 +0800
commit7fb839e3cc09db2d56d5744b1bd1fb2a09d83fd0 (patch)
tree4d54cce135947a32010f5f8745c818835188b716 /makepkg.d/makepkg.aarch64.conf
parentb8e8fea7a54bc7713cd230b5179d50fb505918da (diff)
feat: support multiarch (#3)
Diffstat (limited to 'makepkg.d/makepkg.aarch64.conf')
-rw-r--r--makepkg.d/makepkg.aarch64.conf21
1 files changed, 21 insertions, 0 deletions
diff --git a/makepkg.d/makepkg.aarch64.conf b/makepkg.d/makepkg.aarch64.conf
new file mode 100644
index 0000000..e032493
--- /dev/null
+++ b/makepkg.d/makepkg.aarch64.conf
@@ -0,0 +1,21 @@
+#########################################################################
+# ARCHITECTURE, COMPILE FLAGS
+#########################################################################
+#
+CARCH="aarch64"
+CHOST="aarch64-unknown-linux-gnu"
+
+#-- Compiler and Linker Flags
+#CPPFLAGS=""
+CFLAGS="-march=armv8-a -O2 -pipe -fstack-protector-strong -fno-plt -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"