Blame SOURCES/glibc-rh1406732-5.patch

147e83
This patch enables building memusagestat with BIND_NOW enabled.
147e83
147e83
Upstream, this change was part of the following commit...
147e83
147e83
commit f9b645b4b0a10c43753296ce3fa40053fa44606a
147e83
Author: Mike Frysinger <vapier@gentoo.org>
147e83
Date:   Wed Apr 24 13:32:22 2019 +0200
147e83
147e83
    memusagestat: use local glibc when linking [BZ #18465]
147e83
147e83
...but since that commit cannot be backported to RHEL-7, this patch
147e83
adds only the BIND_NOW linker flag at the appropriate place instead.
147e83
147e83
diff --git a/malloc/Makefile b/malloc/Makefile
147e83
index 476208cf43d211c9..992cec6b03115a76 100644
147e83
--- a/malloc/Makefile
147e83
+++ b/malloc/Makefile
147e83
@@ -142,7 +142,7 @@ lib := memusagestat
147e83
 include $(patsubst %,$(..)cppflags-iterator.mk,$(cpp-srcs-left))
147e83
 
147e83
 $(objpfx)memusagestat: $(memusagestat-modules:%=$(objpfx)%.o)
147e83
-	$(LINK.o) -o $@ $^ $(libgd-LDFLAGS) -lgd -lpng -lz -lm
147e83
+	$(LINK.o) -Wl,-z,now -o $@ $^ $(libgd-LDFLAGS) -lgd -lpng -lz -lm
147e83
 
147e83
 include ../Rules
147e83