hc
2023-12-06 d38611ca164021d018c1b23eee65bbebc09c63e0
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 $<