diff options
| author | EuAndreh <eu@euandre.org> | 2023-11-25 06:26:51 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2023-11-25 06:26:54 -0300 |
| commit | f847e8058c9d820362ff52fe06ff196e33a54962 (patch) | |
| tree | 48cc877857a3d1e130170077ecb7910c6d351bfd /src/sql | |
| parent | src/napi-sqlite.c: Improve error handling (diff) | |
| download | papod-f847e8058c9d820362ff52fe06ff196e33a54962.tar.gz papod-f847e8058c9d820362ff52fe06ff196e33a54962.tar.xz | |
Makefile: Compose $(CFLAGS.a) with $(CFLAGS) instead of combine
Instead of defining a toplevel $(CFLAGS.a) that includes everything from
$(CFLAGS) plus whatever is statically defined in the Makefile, we now
use both $(CFLAGS) and $(CFLAGS.a) together, and we define neither. Now
one can keep a single usage of $(CFLAGS), and override $(CFLAGS.a) when
desired.
Where previously, in order to give a flag only to $(CFLAGS.a), one had
to write:
$ make CFLAGS.a="$CFLAGS --.a-only"
Now can be done via:
$ make CFLAGS.a="--.a-only"
IOW, previously $(CFLAGS.so) was "everything you gave to $(CFLAGS), plus
this extra -fPIC" what now is "override $(CFLAGS), $(CFLAGS.a) or
$(CFLAGS.so) as you wish".
The same is true for $(LDLIBS), $(LDLIBS.a) and $(LDLIBS.so).
Diffstat (limited to 'src/sql')
0 files changed, 0 insertions, 0 deletions
