configure/Makefile: don't override user CFLAGS
authorKonstantin Kharlamov <Hi-Angel@yandex.ru>
Mon, 13 Apr 2020 11:57:19 +0000 (14:57 +0300)
committerKonstantin Kharlamov <Hi-Angel@yandex.ru>
Mon, 13 Apr 2020 12:04:11 +0000 (15:04 +0300)
commit4c0b3d98f2d05ddd3f16262c466dcedb22158065
tree757f341436d1140cd7e4d9567c158dc5a463866e
parent3f2dcb7f855d43244ec178aa2a34bb1475bf6901
configure/Makefile: don't override user CFLAGS

It is a usual practice to build sw by passing `CFLAGS="-foo"` on
configure stage. It didn't work with FIO though. This commit fixes two
problems:

* configure: this script was overriding user CFLAGS
* Makefile: this script was appending its own CFLAGS instead of
  prepending them. The problem with this one is that it sets a -O3
option, but a user may have wanted to disable optimization, so they set
-O0 option. And by appending our CFLAGS we make user CFLAGS to not work.

Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
Makefile
configure