aboutsummaryrefslogtreecommitdiff
path: root/projects/cros-ec/patches/nyan/0002-Enforce-compilation-without-system-headers.patch
blob: db747ea97c8520343deca9842ea53b0a3c48410f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From fd77232c8e9789f5556fc6cc3c694924c1546a41 Mon Sep 17 00:00:00 2001
From: Paul Kocialkowski <contact@paulk.fr>
Date: Wed, 20 Jul 2016 16:26:32 +0200
Subject: [PATCH 2/4] Enforce compilation without system headers

This is based on commit bc404c94b4ab1e6a62e607fd7ef034aa31d6388e
(Enforce compilation without system headers)
---
 Makefile.toolchain | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.toolchain b/Makefile.toolchain
index dd0ebb2..47991e1 100644
--- a/Makefile.toolchain
+++ b/Makefile.toolchain
@@ -19,7 +19,7 @@ BUILDCC?=gcc
 HOSTCC?=$(HOST_CROSS_COMPILE)gcc
 
 CFLAGS_WARN=-Wall -Werror -Wundef -Wstrict-prototypes -Wno-trigraphs      \
-            -fno-strict-aliasing -fno-common                              \
+            -fno-strict-aliasing -fno-common -ffreestanding -fno-builtin  \
             -Werror-implicit-function-declaration -Wno-format-security    \
             -fno-delete-null-pointer-checks -Wdeclaration-after-statement \
             -Wno-pointer-sign -fno-strict-overflow -fconserve-stack
-- 
2.9.0