Search Linux Wireless

Re: [iw] [patch] Please support CPPFLAGS in Makefile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Johannes Berg wrote on 08/11/2018:
> On Thu, 2018-11-08 at 21:26 +0100, Johannes Berg wrote:
>> Hi,
>>
>>> The attached patch adds support for CPPFLAGS to iw's Makefile.
>>
>> Please send the patch as plain text (not attachment), and with signed-
>> off-by per the CONTRIBUTING file.
> 
> Actually, it looks like patchwork knows how to read attachments? :)
> 
> So I guess attachment is fine, but you need to add the s-o-b and a
> commit message in the patch itself.

Thanks for the hints Johannes.
Here is the updated patch.

Paride
From 5a4c71201f4de8087d220db1755bb7a458dbd23d Mon Sep 17 00:00:00 2001
From: Paride Legovini <pl@xxxxxxxxxxxxxx>
Date: Thu, 8 Nov 2018 21:36:59 +0100
Subject: [PATCH] Honor CPPFLAGS when compiling

Pass CPPFLAGS to the compiler as done with CFLAGS.

Signed-off-by: Paride Legovini <pl@xxxxxxxxxxxxxx>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 75ae989..9a6c25a 100644
--- a/Makefile
+++ b/Makefile
@@ -101,7 +101,7 @@ version.c: version.sh $(patsubst %.o,%.c,$(VERSION_OBJS)) nl80211.h iw.h Makefil
 
 %.o: %.c iw.h nl80211.h
 	@$(NQ) ' CC  ' $@
-	$(Q)$(CC) $(CFLAGS) -c -o $@ $<
+	$(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
 
 ifeq ($(IW_ANDROID_BUILD),)
 iw:	$(OBJS)
-- 
2.19.1


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux