-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmakepkg-armv6h.conf.patch
More file actions
22 lines (21 loc) · 1013 Bytes
/
makepkg-armv6h.conf.patch
File metadata and controls
22 lines (21 loc) · 1013 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- /usr/share/devtools/makepkg-x86_64.conf 2019-09-22 00:10:53.000000000 +0800
+++ makepkg-armv6h.conf 2019-03-11 19:04:32.935895750 +0800
@@ -34,13 +32,15 @@
# ARCHITECTURE, COMPILE FLAGS
#########################################################################
#
-CARCH="x86_64"
-CHOST="x86_64-pc-linux-gnu"
+CARCH="armv6h"
+CHOST="armv6l-unknown-linux-gnueabihf"
#-- Compiler and Linker Flags
+# -march (or -mcpu) builds exclusively for an architecture
+# -mtune optimizes for an architecture, but builds for whole processor family
CPPFLAGS="-D_FORTIFY_SOURCE=2"
-CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt"
-CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt"
+CFLAGS="-march=armv6 -mfloat-abi=hard -mfpu=vfp -O2 -pipe -fstack-protector-strong -fno-plt"
+CXXFLAGS="-march=armv6 -mfloat-abi=hard -mfpu=vfp -O2 -pipe -fstack-protector-strong -fno-plt"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j2"