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 | --- |
Patrick Williams | 520786c | 2023-06-25 16:20:36 -0500 | [diff] [blame] | 8 | Upstream-Status: Pending |
| 9 | |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 10 | usr/Makefile | 4 ++-- |
| 11 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 12 | |
| 13 | diff --git a/usr/Makefile b/usr/Makefile |
| 14 | index cc8df11..c55fd68 100644 |
| 15 | --- a/usr/Makefile |
| 16 | +++ b/usr/Makefile |
| 17 | @@ -78,7 +78,7 @@ TGTADM_OBJS = tgtadm.o concat_buf.o |
| 18 | TGTADM_DEP = $(TGTADM_OBJS:.o=.d) |
| 19 | |
| 20 | tgtadm: $(TGTADM_OBJS) |
| 21 | - $(CC) $^ -o $@ |
| 22 | + $(CC) $^ -o $@ $(LDFLAGS) |
| 23 | |
| 24 | -include $(TGTADM_DEP) |
| 25 | |
| 26 | @@ -86,7 +86,7 @@ TGTIMG_OBJS = tgtimg.o libssc.o libcrc32c.o |
| 27 | TGTIMG_DEP = $(TGTIMG_OBJS:.o=.d) |
| 28 | |
| 29 | tgtimg: $(TGTIMG_OBJS) |
| 30 | - $(CC) $^ -o $@ |
| 31 | + $(CC) $^ -o $@ $(LDFLAGS) |
| 32 | |
| 33 | -include $(TGTIMG_DEP) |
| 34 | |
| 35 | -- |
| 36 | 2.7.4 |
| 37 | |