public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
deeef55
)
Honour CFLAGS set in the Makefile.
author
David Given
<dg@cowlark.com>
Sat, 2 Jun 2018 19:30:52 +0000
(21:30 +0200)
committer
David Given
<dg@cowlark.com>
Sat, 2 Jun 2018 19:30:52 +0000
(21:30 +0200)
Makefile
patch
|
blob
|
history
build.lua
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index
1bfba39
..
03b87c9
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-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:
diff --git
a/build.lua
b/build.lua
index
1e24059
..
f1a1a20
100644
(file)
--- a/
build.lua
+++ b/
build.lua
@@
-1,5
+1,5
@@
vars.cflags = {
- "
-g", "-O
"
+ "
$CFLAGS
"
}
vars.ackcflags = {
"-O6"