[PATCH v3 0/4] honor CFLAGS & friends from environment

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

 



Sparse's build can be tuned by changing variables like CFLAGS,
PREFIX, ... either via a local config file (local.mk) or directly
via the command line.

Given how makefile variables work, they can also potentialy be
changed via the environment. However this was OK for LDFLAGS
(which is undefined by default) but not CFLAGS which was
unconditionaly set to the default '-O2 -g'. Since Debian builds
needs it at least for CFLAGS, these patches allows to set CFLAGS,
PREFIX, ... via the environment by initializing them with '?='
instead of '='.

Changes since v2:
* CHECKER is not configurable anymore
* MAN1DIR is unneeded, MANDIR is enough
* make '-Wall -Wwrite-strings' mandatory

Changes since v1:
* use '?=' also for PKG_CONFIG, CHECKER, PREFIX, DESTDIR,
  BINDI,? MANDIR & MAN1DIR.

Luc Van Oostenryck (3):
  build: let CHECKER & CHECKER_FLAGS be internals
  build: always use '-Wall -Wwrite-strings'
  build: get rid of MAN1DIR

Uwe Kleine-König (1):
  build: honor CFLAGS & friends from environment

 Makefile | 33 +++++++++++++++++++--------------
 1 file changed, 19 insertions(+), 14 deletions(-)

-- 
2.20.0




[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