Blame SOURCES/tests-include-missing-LDFLAGS-to-make-targets.patch

a6de77
From 112f4b7266cae313e5a7f3d720360cdb294db496 Mon Sep 17 00:00:00 2001
a6de77
From: Rafael Aquini <aquini@redhat.com>
a6de77
Date: Sun, 12 Apr 2020 22:59:32 -0400
a6de77
Subject: [PATCH] tests: include missing LDFLAGS to make targets
a6de77
a6de77
Signed-off-by: Rafael Aquini <aquini@redhat.com>
a6de77
---
a6de77
 tests/Makefile | 12 ++++++------
a6de77
 1 file changed, 6 insertions(+), 6 deletions(-)
a6de77
a6de77
diff --git a/tests/Makefile b/tests/Makefile
a6de77
index 9fd15eb..216942e 100644
a6de77
--- a/tests/Makefile
a6de77
+++ b/tests/Makefile
a6de77
@@ -120,32 +120,32 @@ shmoverride_linked.c: shmoverride_unlinked.c
a6de77
 obj32/%.o: %.c
a6de77
 	@$(VECHO) CC32 $@
a6de77
 	@mkdir -p obj32
a6de77
-	$(CC32) $(CPPFLAGS) $(CFLAGS) -o $@ -c $<
a6de77
+	$(CC32) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ -c $<
a6de77
 
a6de77
 obj64/%.o: %.c
a6de77
 	@$(VECHO) CC64 $@
a6de77
 	@mkdir -p obj64
a6de77
-	$(CC64) $(CPPFLAGS) $(CFLAGS) -o $@ -c $<
a6de77
+	$(CC64) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ -c $<
a6de77
 
a6de77
 obj32/%-pic.o: %.c
a6de77
 	@$(VECHO) CC32 $@
a6de77
 	@mkdir -p obj32
a6de77
-	$(CC32) $(CPPFLAGS) $(CFLAGS) -fPIC -o $@ -c $<
a6de77
+	$(CC32) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -fPIC -o $@ -c $<
a6de77
 
a6de77
 obj64/%-pic.o: %.c
a6de77
 	@$(VECHO) CC64 $@
a6de77
 	@mkdir -p obj64
a6de77
-	$(CC64) $(CPPFLAGS) $(CFLAGS) -fPIC -o $@ -c $<
a6de77
+	$(CC64) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -fPIC -o $@ -c $<
a6de77
 
a6de77
 obj32/libheapshrink.so: obj32/heapshrink-helper-pic.o
a6de77
 	@$(VECHO) LD32 "(shared)" $@
a6de77
 	@mkdir -p obj32
a6de77
-	$(CC32) -Wl,-soname,$(notdir $@) -shared -o $@ $^
a6de77
+	$(CC32) $(LDFLAGS) -Wl,-soname,$(notdir $@) -shared -o $@ $^
a6de77
 
a6de77
 obj64/libheapshrink.so: obj64/heapshrink-helper-pic.o
a6de77
 	@$(VECHO) LD64 "(shared)" $@
a6de77
 	@mkdir -p obj64
a6de77
-	$(CC64) -Wl,-soname,$(notdir $@) -shared -o $@ $^
a6de77
+	$(CC64) $(LDFLAGS) -Wl,-soname,$(notdir $@) -shared -o $@ $^
a6de77
 
a6de77
 $(LIB_TESTS:%=obj32/%): %: %.o obj32/testutils.o obj32/libtestutils.o
a6de77
 	@$(VECHO) LD32 "(lib test)" $@
a6de77
-- 
a6de77
2.25.2
a6de77