Re: Compiling git with -Werror

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

 



Michael Haggerty <mhagger@xxxxxxxxxxxx> writes:

> Is there some other mechanism to set strict CFLAGS parameters for the
> build without confusing ./configure?

As mentioned on IRC, you can put

  CFLAGS = -g -O2 -Wall -Werror -Wdeclaration-after-statement

in config.mak.  The Makefile includes that if it exists, so it is a good
place to gather your custom settings.

One trick I like to do in every Makefile is

  O = 3
  CFLAGS = -g -O$(O) -Wall <blah>

That way 'make O=0' does a build suitable for debugging.

-- 
Thomas Rast
trast@{inf,student}.ethz.ch
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]