1 From 0070081ffe65a4fbe442044ddfcc818593c98e33 Mon Sep 17 00:00:00 2001
2 From: Romain Naour <romain.naour@openwide.fr>
3 Date: Wed, 30 Oct 2013 22:35:34 +0100
4 Subject: [PATCH] Fix ptrace detection
6 Ptrace support detection is ignored when CFLAGS is set in command
7 arguments. Use override in Makefile to add -DWARN_NO_PTRACE and
8 -DNO_PTRACE in CFLAGS if ptrace is not available.
10 Signed-off-by: Romain Naour <romain.naour@openwide.fr>
13 1 file changed, 2 insertions(+), 2 deletions(-)
15 diff --git a/Makefile b/Makefile
16 index 83329ca..01b4f45 100644
19 @@ -223,12 +223,12 @@ LDFLAGS ?=
21 ifneq ($(call try-cc,$(SOURCE_PTRACE),),y)
23 - CFLAGS += -DWARN_NO_PTRACE
24 + override CFLAGS += -DWARN_NO_PTRACE
29 -CFLAGS += -DNO_PTRACE
30 +override CFLAGS += -DNO_PTRACE
33 # Append required CFLAGS