]> git.proxmox.com Git - wasi-libc.git/commit
Use separate makefile var for CFLAGS (#226)
authorAlbert Cervin <albert@acervin.com>
Thu, 10 Dec 2020 16:31:21 +0000 (17:31 +0100)
committerGitHub <noreply@github.com>
Thu, 10 Dec 2020 16:31:21 +0000 (08:31 -0800)
commit5ccfab77b097a5d0184f91184952158aa5904c8d
treeb2920a672f3bf0bb60f88d05d87fad63528661d3
parent378fd4b21aab6d390f3a1c1817d53c422ad00a62
Use separate makefile var for CFLAGS (#226)

CFLAGS now get initialized with the provided value for WASM_CFLAGS, or
its default.

This seems to be the intended use case of having `WASM_CFLAGS ?=` at the
top of the Makefile. Otherwise, if WASM_CFLAGS is set on the command
line, it overrides all CFLAGS and for example `--sysroot` is not added,
rendering the build invalid unless it is supplied on the make command
line.
Makefile