diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2015-02-28 10:11:11 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2015-02-28 10:14:39 +0100 |
commit | 3b7e950a2a226d1344e78da8fb10e3cdb92f37a0 (patch) | |
tree | 2bda2f5203b3833e77529fe96884d56e69c8fca3 /package/stats/patches | |
parent | 23cfddf360edbac12473a5c6f9e2d85b12992bb3 (diff) |
cleanup phil's submissions
- use () instead of {} in make variables for now
- use PKG_HASH instead of PKG_MD5SUM
- update to latest upstream versions
- use a newline between PKG_* variables and DISTFILES
- use <pkgname>-install instead of post-install
- use lowercase description texts only
- fix some missing PKG_BUILDDEP
- elfutils needs argp, which is not available in uClibc-ng, yet
- PKG_HASH is not required for git sources
Diffstat (limited to 'package/stats/patches')
-rw-r--r-- | package/stats/patches/patch-Makefile | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/package/stats/patches/patch-Makefile b/package/stats/patches/patch-Makefile index 8ab247023..0650a3adf 100644 --- a/package/stats/patches/patch-Makefile +++ b/package/stats/patches/patch-Makefile @@ -1,8 +1,14 @@ - 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 +--- 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 @@ -11,18 +17,19 @@ -LDFLAGS=$(OPTFLAGS) -LDLIBS=-lm +CPPFLAGS+=-I. -+CFLAGS+=$(OPTFLAGS) $(WARNFLAGS) -+LDFLAGS+=$(OPTFLAGS) ++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 +41,8 @@ $(OFILES): config.h +@@ -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=${OPTFLAGS} ${WARNFLAGS} ++tools/configurator: CFLAGS=${CFLAGS_FOR_BUILD} ++tools/configurator: LDFLAGS=${LDFLAGS_FOR_BUILD} stats: $(OFILES) distclean: clean |