|
|
bdc76f |
commit f9b645b4b0a10c43753296ce3fa40053fa44606a
|
|
|
bdc76f |
Author: Mike Frysinger <vapier@gentoo.org>
|
|
|
bdc76f |
Date: Wed Apr 24 13:32:22 2019 +0200
|
|
|
bdc76f |
|
|
|
bdc76f |
memusagestat: use local glibc when linking [BZ #18465]
|
|
|
bdc76f |
|
|
|
bdc76f |
The memusagestat is the only binary that has its own link line which
|
|
|
bdc76f |
causes it to be linked against the existing installed C library. It
|
|
|
bdc76f |
has been this way since it was originally committed in 1999, but I
|
|
|
bdc76f |
don't see any reason as to why. Since we want all the programs we
|
|
|
bdc76f |
build locally to be against the new copy of glibc, change the build
|
|
|
bdc76f |
to be like all other programs.
|
|
|
bdc76f |
|
|
|
bdc76f |
diff --git a/malloc/Makefile b/malloc/Makefile
|
|
|
bdc76f |
index 388cf7e9ee3a2569..228a1279a5960d8c 100644
|
|
|
bdc76f |
--- a/malloc/Makefile
|
|
|
bdc76f |
+++ b/malloc/Makefile
|
|
|
bdc76f |
@@ -131,6 +131,7 @@ ifneq ($(cross-compiling),yes)
|
|
|
bdc76f |
# If the gd library is available we build the `memusagestat' program.
|
|
|
bdc76f |
ifneq ($(LIBGD),no)
|
|
|
bdc76f |
others: $(objpfx)memusage
|
|
|
bdc76f |
+others += memusagestat
|
|
|
bdc76f |
install-bin = memusagestat
|
|
|
bdc76f |
install-bin-script += memusage
|
|
|
bdc76f |
generated += memusagestat memusage
|
|
|
bdc76f |
@@ -154,8 +155,7 @@ cpp-srcs-left := $(memusagestat-modules)
|
|
|
bdc76f |
lib := memusagestat
|
|
|
bdc76f |
include $(patsubst %,$(..)libof-iterator.mk,$(cpp-srcs-left))
|
|
|
bdc76f |
|
|
|
bdc76f |
-$(objpfx)memusagestat: $(memusagestat-modules:%=$(objpfx)%.o)
|
|
|
bdc76f |
- $(LINK.o) -o $@ $^ $(libgd-LDFLAGS) -lgd -lpng -lz -lm
|
|
|
bdc76f |
+LDLIBS-memusagestat = $(libgd-LDFLAGS) -lgd -lpng -lz -lm
|
|
|
bdc76f |
|
|
|
bdc76f |
ifeq ($(run-built-tests),yes)
|
|
|
bdc76f |
ifeq (yes,$(build-shared))
|