blob: 39ca1a77b518ef0714953c792c74cb8f6688b348 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
---
malloc/Makefile | 4 +++-
malloc/memusage.sh | 6 ++++++
2 files changed, 9 insertions(+), 1 deletion(-)
Index: glibc-2.3.6/malloc/Makefile
===================================================================
--- glibc-2.3.6.orig/malloc/Makefile 2008-07-17 14:40:54.000000000 -0700
+++ glibc-2.3.6/malloc/Makefile 2008-07-17 14:42:07.000000000 -0700
@@ -80,7 +80,7 @@ ifneq ($(cross-compiling),yes)
ifneq ($(LIBGD),no)
install-bin = memusagestat
install-bin-script += memusage
-generated += memusagestat memusage
+generated += memusagestat
extra-objs += memusagestat.o
# The configure.in check for libgd and its headers did not use $SYSINCLUDES.
@@ -90,6 +90,8 @@ extra-objs += memusagestat.o
$(objpfx)memusagestat.o: sysincludes = # nothing
endif
endif
+install-bin-script += memusage
+generated += memusage
# Another goal which can be used to override the configure decision.
.PHONY: do-memusagestat
Index: glibc-2.3.6/malloc/memusage.sh
===================================================================
--- glibc-2.3.6.orig/malloc/memusage.sh 2008-07-17 14:42:17.000000000 -0700
+++ glibc-2.3.6/malloc/memusage.sh 2008-07-17 14:42:54.000000000 -0700
@@ -205,6 +205,12 @@ if test $# -eq 0; then
do_usage
fi
+# Find memusagestat.
+if test -n "$png" -a ! -x $memusagestat; then
+ echo >&2 $"PNG generation is not supported."
+ png=""
+fi
+
# This will be in the environment.
add_env="LD_PRELOAD=$memusageso"
|