diff options
author | Phil Sutter <phil.sutter@viprinet.com> | 2015-02-24 12:47:12 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2015-02-28 10:14:35 +0100 |
commit | 49e03ead81a32c7443a1c38ec06ead54162fda93 (patch) | |
tree | aa8228b666f37ae18996b94aeeba19826f8d11a2 /package/stats/patches/patch-Makefile | |
parent | 47b87aaf4534d12770c75bbc006b27135fdd5225 (diff) |
port the stats utility from Rusty Russell
Diffstat (limited to 'package/stats/patches/patch-Makefile')
-rw-r--r-- | package/stats/patches/patch-Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/package/stats/patches/patch-Makefile b/package/stats/patches/patch-Makefile new file mode 100644 index 000000000..8ab247023 --- /dev/null +++ b/package/stats/patches/patch-Makefile @@ -0,0 +1,28 @@ + - allow for passing custom compiler FLAGS + - use host CC and CFLAGS for tools/configurator build +--- stats-82bd4977b607b8714f361467e37a9d801ff911b6.orig/Makefile 2015-02-23 22:34:48.000000000 +0100 ++++ stats-82bd4977b607b8714f361467e37a9d801ff911b6/Makefile 2015-02-23 22:38:45.478017862 +0100 +@@ -5,10 +5,10 @@ PREFIX = /usr/local + OPTFLAGS=-O3 -flto + #OPTFLAGS=-g + WARNFLAGS=-Wall -Wstrict-prototypes -Wundef +-CPPFLAGS=-I. +-CFLAGS=$(OPTFLAGS) $(WARNFLAGS) +-LDFLAGS=$(OPTFLAGS) +-LDLIBS=-lm ++CPPFLAGS+=-I. ++CFLAGS+=$(OPTFLAGS) $(WARNFLAGS) ++LDFLAGS+=$(OPTFLAGS) ++LDLIBS+=-lm + + # Comment this out (or use "VALGRIND=" on cmdline) if you don't have valgrind. + VALGRIND=valgrind --quiet --leak-check=full --error-exitcode=5 +@@ -41,6 +41,8 @@ $(OFILES): config.h + config.h: tools/configurator + if $< > $@.tmp; then mv $@.tmp $@; else rm -f $@.tmp; fi + ++tools/configurator: CC=${CC_FOR_BUILD} ++tools/configurator: CFLAGS=${OPTFLAGS} ${WARNFLAGS} + stats: $(OFILES) + + distclean: clean |