Magellan Linux

Contents of /trunk/crda/patches/crda-3.18-no-werror.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2970 - (show annotations) (download)
Thu Aug 17 11:31:26 2017 UTC (6 years, 8 months ago) by niro
File size: 916 byte(s)
-make Werror conditional
1 From 37384d22ba0ab622a5848a9a794084e6064fc905 Mon Sep 17 00:00:00 2001
2 From: Mike Frysinger <vapier@chromium.org>
3 Date: Wed, 4 Mar 2015 14:03:44 -0500
4 Subject: [PATCH] allow people to turn off -Werror
5
6 Forcing -Werror at build time easily breaks across compiler settings,
7 compiler versions, architectures, C libraries, etc... Add a knob so
8 distro peeps can turn it off.
9
10 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 ---
12 Makefile | 3 ++-
13 1 file changed, 2 insertions(+), 1 deletion(-)
14
15 diff --git a/Makefile b/Makefile
16 index 46c683d..5f988f4 100644
17 --- a/Makefile
18 +++ b/Makefile
19 @@ -25,8 +25,9 @@ UDEV_RULE_DIR?=/lib/udev/rules.d/
20 PUBKEY_DIR?=pubkeys
21 RUNTIME_PUBKEY_DIR?=/etc/wireless-regdb/pubkeys
22
23 +WERROR = -Werror
24 CFLAGS += -O2 -fpic
25 -CFLAGS += -std=gnu99 -Wall -Werror -pedantic
26 +CFLAGS += -std=gnu99 -Wall $(WERROR) -pedantic
27 CFLAGS += -Wall -g
28 LDLIBREG += -lreg
29 LDLIBS += $(LDLIBREG)
30 --
31 2.3.1
32