Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 1 | Add LDFLAGS variable to Makefile, make sure the extra linker flags can be passed. |
| 2 | |
| 3 | Upstream-Status: Pending |
| 4 | |
| 5 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> |
| 6 | |
| 7 | diff --git a/makefile b/makefile |
| 8 | index 98008da..c328ba7 100644 |
| 9 | --- a/makefile |
| 10 | +++ b/makefile |
| 11 | @@ -11,7 +11,7 @@ mandir = ${sharedir}/man |
| 12 | O=aoe.o bpf.o ${PLATFORM}.o ata.o |
| 13 | |
| 14 | vblade: $O |
| 15 | - ${CC} -o vblade $O |
| 16 | + ${CC} ${LDFLAGS} -o vblade $O |
| 17 | |
| 18 | aoe.o : aoe.c config.h dat.h fns.h makefile |
| 19 | ${CC} ${CFLAGS} -c $< |