[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 10 Oct 2013 14:50:11 +0900
From: Namhyung Kim <namhyung@...nel.org>
To: Ingo Molnar <mingo@...nel.org>
Cc: linux-kernel@...r.kernel.org,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Arnaldo Carvalho de Melo <acme@...hat.com>,
David Ahern <dsahern@...il.com>, Jiri Olsa <jolsa@...hat.com>
Subject: Re: [PATCH 06/52] tools/perf/build: Split out feature check: 'stackprotector'
On Tue, 8 Oct 2013 12:10:36 +0200, Ingo Molnar wrote:
> -ifeq ($(call try-cc,$(SOURCE_HELLO),$(CFLAGS) -Werror -Wstack-protector,-Wstack-protector),y)
> +ifeq ($(feature-stackprotector), 1)
> CFLAGS += -Wstack-protector
> endif
[SNIP]
> +test-stackprotector:
> + $(BUILD) -Werror -fstack-protector
The flag being checked should be -"W"stack-protector instead of
-"f"stack-protector. And the gcc manpage says that -Wstack-protector is
only active when -fstack-protector is active. So the end result should
look like
$(BUILD) -Werror -fstack-protector -Wstack-protector
Thanks,
Namhyung
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists