summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-01-30 01:45:30 +0000
committerUlrich Drepper <drepper@redhat.com>2001-01-30 01:45:30 +0000
commit48d99185e3c261d7735d446fe467d6d82fc73702 (patch)
treed550e184cc3c9d27ac70e464207bb517a53ac55f
parent40576b87339bf320e0c01543545087188f507479 (diff)
downloadglibc-48d99185e3c261d7735d446fe467d6d82fc73702.tar.gz
glibc-48d99185e3c261d7735d446fe467d6d82fc73702.tar.xz
glibc-48d99185e3c261d7735d446fe467d6d82fc73702.zip
Update.
	* malloc/Makefile: Don't build memusagestat if cross-compiling.
-rw-r--r--ChangeLog2
-rw-r--r--malloc/Makefile7
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 34607423ea..762b6f213f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2001-01-29  Ulrich Drepper  <drepper@redhat.com>
 
+	* malloc/Makefile: Don't build memusagestat if cross-compiling.
+
 	* sysdeps/generic/dl-sysdep.c (set_seen): Fix typo.
 
 	* math/libm-test.inc (rint_test): Add a few more tests for round
diff --git a/malloc/Makefile b/malloc/Makefile
index d69d49bbd3..84324ca563 100644
--- a/malloc/Makefile
+++ b/malloc/Makefile
@@ -1,4 +1,4 @@
-# Copyright (C) 1991-1999, 2000 Free Software Foundation, Inc.
+# Copyright (C) 1991-1999, 2000, 2001 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 
 # The GNU C Library is free software; you can redistribute it and/or
@@ -69,12 +69,17 @@ address-width=18
 endif
 endif
 
+# Unless we get a test for the availability of libgd which also works
+# for cross-compiling we disable the memusagestat generation in this
+# situation.
+ifneq ($(cross-compiling),yes)
 # If the gd library is available we build the `memusagestat' program.
 ifneq ($(LIBGD),no)
 install-bin += memusagestat memusage
 generated += memusagestat memusage
 extra-objs += memusagestat.o
 endif
+endif
 
 # Another goal which can be used to override the configure decision.
 .PHONY: do-memusagestat