]> rtime.felk.cvut.cz Git - omk.git/commit
Always use OMK_*FLAGS instead of *FLAGS
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 10 Mar 2015 19:57:39 +0000 (20:57 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 10 Mar 2015 20:34:08 +0000 (21:34 +0100)
commit639651630cd8dbab7b757afdea845eb66b99c564
treea119be3ae6c0be31acfed15d4e8cdcb419f2a94c
parent0bde9f4e78d242399980fb7445aebc49e58f184d
Always use OMK_*FLAGS instead of *FLAGS

We want to stick with the semantics defined by automake. In it *FLAGS are
user variables that should allow the user to override anything. Therefore,
we should not modify them in Makefile.rules at all.

The problem with the previous code was the following:
If config.target defined OMK_CFLAGS=-O0, then Makefile.rules defined
CFLAGS=-Wall -O2 and -O2 overrode the -O0.

This also fixes the test added in the previous commit.
snippets/base.omk
snippets/linux.omk