diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2015-03-01 13:19:12 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2015-03-01 13:19:12 +0100 |
commit | f2ea9e8dbd4cc3c77ff4cc52688d7057d3289fab (patch) | |
tree | 72ec81acffa69f2c89e52a38603a6f92fb1e72ae /package/stats/patches/patch-Makefile | |
parent | dce7d2df8c73896aeef77118fe89fc7e88d035fe (diff) | |
parent | 0943b7422376747a452bda5562c73d673cccbe68 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/stats/patches/patch-Makefile')
-rw-r--r-- | package/stats/patches/patch-Makefile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/package/stats/patches/patch-Makefile b/package/stats/patches/patch-Makefile new file mode 100644 index 000000000..0650a3adf --- /dev/null +++ b/package/stats/patches/patch-Makefile @@ -0,0 +1,35 @@ + - allow for passing custom compiler FLAGS + - use host CC and CFLAGS for tools/configurator build +--- stats-82bd4977b607b8714f361467e37a9d801ff911b6.orig/Makefile 2015-02-27 18:30:06.000000000 +0100 ++++ stats-82bd4977b607b8714f361467e37a9d801ff911b6/Makefile 2015-02-27 18:37:14.000000000 +0100 +@@ -1,14 +1,15 @@ + # Destination directory for installation (intended for packagers) + DESTDIR = +-PREFIX = /usr/local ++PREFIX = /usr + ++CC ?= + OPTFLAGS=-O3 -flto + #OPTFLAGS=-g + WARNFLAGS=-Wall -Wstrict-prototypes -Wundef +-CPPFLAGS=-I. +-CFLAGS=$(OPTFLAGS) $(WARNFLAGS) +-LDFLAGS=$(OPTFLAGS) +-LDLIBS=-lm ++CPPFLAGS+=-I. ++CFLAGS+=$(WARNFLAGS) ++LDFLAGS+= ++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 +42,9 @@ $(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=${CFLAGS_FOR_BUILD} ++tools/configurator: LDFLAGS=${LDFLAGS_FOR_BUILD} + stats: $(OFILES) + + distclean: clean |