aboutgitcodebugslistschat
path: root/README.md
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-09-14 15:34:28 +0200
committerStefano Brivio <sbrivio@redhat.com>2022-09-22 16:53:09 +0200
commit512f5b1aab2a09faf8d63894ebadc8a2a96c6925 (patch)
treec9649ab490f02c3278de026df535398d3be1d012 /README.md
parentb323e5f43999a5ab38196502bb97bcd695538906 (diff)
downloadpasst-512f5b1aab2a09faf8d63894ebadc8a2a96c6925.tar
passt-512f5b1aab2a09faf8d63894ebadc8a2a96c6925.tar.gz
passt-512f5b1aab2a09faf8d63894ebadc8a2a96c6925.tar.bz2
passt-512f5b1aab2a09faf8d63894ebadc8a2a96c6925.tar.lz
passt-512f5b1aab2a09faf8d63894ebadc8a2a96c6925.tar.xz
passt-512f5b1aab2a09faf8d63894ebadc8a2a96c6925.tar.zst
passt-512f5b1aab2a09faf8d63894ebadc8a2a96c6925.zip
Makefile: Allow define overrides by prepending, not appending, CFLAGS
If we append CFLAGS to the ones passed via command line (if any), -D options we append will override -D options passed on command line (if any). For example, OpenSUSE build flags include -D_FORTIFY_SOURCE=3, and we want to have -D_FORTIFY_SOURCE=2, if and only if not overridden. The current behaviour implies we redefine _FORTIFY_SOURCE as 2, though. Instead of appending CFLAGS, prepend them by adding all the default build flags to another variable, a simply expanded one (defined with :=), named FLAGS, and pass that *before* CFLAGS in targets, so that defines from command line can override default flags. Reported-by: Dario Faggioli <dfaggioli@suse.com> Signed-off-by: Stefano Brivio <sbrivio@redhat.com> Tested-by: Dario Faggioli <dfaggioli@suse.com>
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions