1From 92bf2f24d4762efd1dbcc4add457e2b600aa50cf Mon Sep 17 00:00:00 2001 2From: Khem Raj <raj.khem@gmail.com> 3Date: Sat, 18 Mar 2017 08:02:17 -0700 4Subject: [PATCH] makefile: Add LDFLAGS to linking rule 5 6This make it use correct link flags and fixes errors like 7No GNU_HASH in the elf binary 8 9Signed-off-by: Khem Raj <raj.khem@gmail.com> 10--- 11Upstream-Status: Pending 12 13 Makefile | 2 +- 14 1 file changed, 1 insertion(+), 1 deletion(-) 15 16diff --git a/Makefile b/Makefile 17index c2b0bc7..cdfb58f 100755 18--- a/Makefile 19+++ b/Makefile 20@@ -34,7 +34,7 @@ sgpio.o: sgpio.c 21 ${CC} $(CFLAGS) -c sgpio.c 22 23 sgpio: sgpio.o 24- ${CC} -g sgpio.o -o sgpio 25+ ${CC} $(LDFLAGS) -g sgpio.o -o sgpio 26 27 clean: 28 rm -f sgpio.o sgpio 29-- 302.12.0 31 32