[PATCH] honor CFLAGS from environment

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

 



Debian build scripts pass CFLAGS in the environment. To honor these only set
CFLAGS to "-O2 -g" if CFLAGS is unset. The warnings in the following line
are added unconditionally. This makes sparse builds reproducible.

Signed-off-by: Uwe Kleine-König <uwe@xxxxxxxxxxxxxxxxx>

--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@
 
 
 CC = gcc-8
-CFLAGS = -O2 -g
+CFLAGS ?= -O2 -g
 CFLAGS += -Wall -Wwrite-strings
 LD = $(CC)
 LDFLAGS += -Wl,--as-needed



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux