summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2016-06-08 23:23:16 +0000
committerandrew <andrew@FreeBSD.org>2016-06-08 23:23:16 +0000
commitfa07f7770edf128343766865cc6aef4605510ba7 (patch)
treeff131d31e6d21ba8d2298cdcd63073168b9eae85
parent12720e106b2b62670123d1299ed1cca6d6b3cc74 (diff)
downloadFreeBSD-src-fa07f7770edf128343766865cc6aef4605510ba7.zip
FreeBSD-src-fa07f7770edf128343766865cc6aef4605510ba7.tar.gz
Also set -fshort-wchar on arm64, this fixes parsing strings from UEFI,
e.g. on the command line. Sponsored by: ABT Systems Ltd
-rw-r--r--sys/boot/efi/Makefile.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/boot/efi/Makefile.inc b/sys/boot/efi/Makefile.inc
index 9ed0cda..9d457f4 100644
--- a/sys/boot/efi/Makefile.inc
+++ b/sys/boot/efi/Makefile.inc
@@ -18,4 +18,8 @@ CFLAGS+= -mno-red-zone
CFLAGS+= -mno-aes
.endif
+.if ${MACHINE_CPUARCH} == "aarch64"
+CFLAGS+= -fshort-wchar
+.endif
+
.include "../Makefile.inc"
OpenPOWER on IntegriCloud