Re: [Bridge] [PATCH] libbridge: Include the configured CFLAGS when compiling

2017-05-15 Thread Stephen Hemminger
On Sat, 13 May 2017 19:23:34 -0700
David Michael  wrote:

> When compiling bridge-utils, the CFLAGS set during "configure" are only
> used in the brctl directory.

Sure make sense. I applied it (with some reordering).


[Bridge] [PATCH] libbridge: Include the configured CFLAGS when compiling

2017-05-15 Thread David Michael
---

Hi,

When compiling bridge-utils, the CFLAGS set during "configure" are only
used in the brctl directory.  Can they be included in libbridge, too?

Thanks.

David

 libbridge/Makefile.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libbridge/Makefile.in b/libbridge/Makefile.in
index 20512c4..4e1cddc 100644
--- a/libbridge/Makefile.in
+++ b/libbridge/Makefile.in
@@ -5,7 +5,7 @@ AR=ar
 RANLIB=@RANLIB@
 
 CC=@CC@
-CFLAGS = -Wall -g $(KERNEL_HEADERS)
+CFLAGS = -Wall -g $(KERNEL_HEADERS) @CFLAGS@
 
 prefix=@prefix@
 exec_prefix=@exec_prefix@
-- 
2.7.4