]> git.ipfire.org Git - thirdparty/kmod.git/commit - configure.ac
build-sys: don't set CFLAGS and LDFLAGS
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Sat, 17 Mar 2012 18:12:44 +0000 (15:12 -0300)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Mon, 19 Mar 2012 04:17:05 +0000 (01:17 -0300)
commite48f37657dc03aee9aace60bf14ef9af489bf47c
tree24cb49941d324e4f3bbfdbd3945a2f07a05c4ff7
parent3ef7208ecfa2fb3edc0d3f6344811e686907c94c
build-sys: don't set CFLAGS and LDFLAGS

These variables are supposed to be set by user. What we can do in
configure is to set another variable and AC_SUBST() it. Then in
Makefile.am we assign it to AM_{CFLAGS,LDFLAGS}. This way user can
always override their values, in configure or make phase.

Reference: http://www.gnu.org/software/automake/manual/html_node/Flag-Variables-Ordering.html
Makefile.am
configure.ac
m4/attributes.m4