aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/vblade/files/makefile-add-ldflags.patch
blob: 71af47ac732afebfe28e1df6e5b3b9b62aeb2f80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Add LDFLAGS variable to Makefile, make sure the extra linker flags can be passed.

Upstream-Status: Pending

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>

diff --git a/makefile b/makefile
index 98008da..c328ba7 100644
--- a/makefile
+++ b/makefile
@@ -11,7 +11,7 @@ mandir = ${sharedir}/man
 O=aoe.o bpf.o ${PLATFORM}.o ata.o dat.o
 
 vblade: $O
-	${CC} -o vblade $O
+	${CC} ${LDFLAGS} -o vblade $O
 
 aoe.o : aoe.c config.h dat.h fns.h makefile
 	${CC} ${CFLAGS} -c $<