Honour CFLAGS set in the Makefile.

This commit is contained in:
David Given 2018-06-02 21:30:52 +02:00
parent deeef55ea9
commit 5a886787d3
2 changed files with 4 additions and 3 deletions

View file

@ -22,9 +22,9 @@ PREFIX = $(INSDIR)
BUILDDIR = $(ACK_TEMP_DIR)/ack-build
# What build flags do you want to use?
# What build flags do you want to use for native code?
CFLAGS = -g
CFLAGS = -g -O -Wno-return-type
LDFLAGS =
# Various commands.
@ -120,6 +120,7 @@ $(build-file): first/ackbuilder.lua Makefile $(lua-files) $(our-lua)
PREFIX=$(PREFIX) \
AR=$(AR) \
CC=$(CC) \
CFLAGS="$(CFLAGS)" \
> $(build-file)
install:

View file

@ -1,5 +1,5 @@
vars.cflags = {
"-g", "-O"
"$CFLAGS"
}
vars.ackcflags = {
"-O6"