Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 1 | From a815ac8ee16b344d9e24b445957f32bf2aafa532 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mark Asselstine <mark.asselstine@windriver.com> |
| 3 | Date: Thu, 5 Jan 2017 11:07:51 -0500 |
| 4 | Subject: [PATCH] usr/Makefile: apply LDFLAGS to all executables |
| 5 | |
| 6 | Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> |
| 7 | --- |
| 8 | usr/Makefile | 4 ++-- |
| 9 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 10 | |
| 11 | diff --git a/usr/Makefile b/usr/Makefile |
| 12 | index cc8df11..c55fd68 100644 |
| 13 | --- a/usr/Makefile |
| 14 | +++ b/usr/Makefile |
| 15 | @@ -78,7 +78,7 @@ TGTADM_OBJS = tgtadm.o concat_buf.o |
| 16 | TGTADM_DEP = $(TGTADM_OBJS:.o=.d) |
| 17 | |
| 18 | tgtadm: $(TGTADM_OBJS) |
| 19 | - $(CC) $^ -o $@ |
| 20 | + $(CC) $^ -o $@ $(LDFLAGS) |
| 21 | |
| 22 | -include $(TGTADM_DEP) |
| 23 | |
| 24 | @@ -86,7 +86,7 @@ TGTIMG_OBJS = tgtimg.o libssc.o libcrc32c.o |
| 25 | TGTIMG_DEP = $(TGTIMG_OBJS:.o=.d) |
| 26 | |
| 27 | tgtimg: $(TGTIMG_OBJS) |
| 28 | - $(CC) $^ -o $@ |
| 29 | + $(CC) $^ -o $@ $(LDFLAGS) |
| 30 | |
| 31 | -include $(TGTIMG_DEP) |
| 32 | |
| 33 | -- |
| 34 | 2.7.4 |
| 35 | |