dad71cf0b33ab1598d28ae9b29ab5a4f0721b8a7
[openwrt/openwrt.git] / package / utils / e2fsprogs / patches / 003-build-Add-SYSLIBS-to-e4crypt-linking.patch
1 From e33ecf1595e390b2657018442c68ae824b3e13b4 Mon Sep 17 00:00:00 2001
2 From: Hauke Mehrtens <hauke@hauke-m.de>
3 Date: Tue, 15 Dec 2020 23:58:53 +0100
4 Subject: [PATCH e2fsprogs] build: Add SYSLIBS to e4crypt linking
5
6 The $(SYSLIBS) was missing when linking the e4crypt application. This is
7 available in the e4crypt.profiled variant, so I assume this was just
8 missing in the normal variant and is not left out intentionally.
9
10 This fixes building e2fsprogrs with -fsanitize=undefined in the global
11 CFLAGS nad LDFLAGS.
12
13 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 ---
15 misc/Makefile.in | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18 --- a/misc/Makefile.in
19 +++ b/misc/Makefile.in
20 @@ -242,7 +242,7 @@ e4defrag: $(E4DEFRAG_OBJS) $(DEPLIBS)
21 e4crypt: $(E4CRYPT_OBJS) $(DEPLIBS) $(DEPSTATIC_LIBUUID)
22 $(E) " LD $@"
23 $(Q) $(CC) $(ALL_LDFLAGS) -o e4crypt $(E4CRYPT_OBJS) \
24 - $(LIBUUID) $(LIBS)
25 + $(LIBUUID) $(LIBS) $(SYSLIBS)
26
27 e4defrag.profiled: $(E4DEFRAG_OBJS) $(PROFILED_DEPLIBS)
28 $(E) " LD $@"