blob: 69c1d670e7d3cab268fbf2e022c0376f65aebe3b [file] [log] [blame]
Brad Bishop2d39a062019-10-28 08:33:36 -04001From 23eacfbcc10c777ce47283a5285455ec83c8aa41 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
3Date: Sun, 6 Oct 2019 13:05:08 +0200
4Subject: [PATCH] snowball/stemwords: do link with LDFLAGS set by build
5 environment
6MIME-Version: 1.0
7Content-Type: text/plain; charset=UTF-8
8Content-Transfer-Encoding: 8bit
9
10Some (cross-)build systems as OpeneEmbedded are picky (for certain reasons) if
11their LDFLAGS are ignored.
12
13Upstream-Status: Submitted [1]
14
15[1] https://github.com/snowballstem/snowball/pull/120
16
17Signed-off-by: Andreas MΓΌller <schnitzeltony@gmail.com>
18---
19 GNUmakefile | 4 ++--
20 1 file changed, 2 insertions(+), 2 deletions(-)
21
22diff --git a/GNUmakefile b/GNUmakefile
23index 76f6ae9..47c6077 100644
24--- a/GNUmakefile
25+++ b/GNUmakefile
26@@ -179,7 +179,7 @@ clean:
27 -rmdir $(js_output_dir)
28
29 snowball: $(COMPILER_OBJECTS)
30- $(CC) $(CFLAGS) -o $@ $^
31+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
32
33 $(COMPILER_OBJECTS): $(COMPILER_HEADERS)
34
35@@ -204,7 +204,7 @@ libstemmer.so: libstemmer/libstemmer.o $(RUNTIME_OBJECTS) $(C_LIB_OBJECTS)
36 $(CC) $(CFLAGS) -shared $(LDFLAGS) -Wl,-soname,libstemmer.so.0,-version-script,libstemmer/symbol.map -o $@.0.0.0 $^
37
38 stemwords: $(STEMWORDS_OBJECTS) libstemmer.o
39- $(CC) $(CFLAGS) -o $@ $^
40+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
41
42 csharp_stemwords: $(CSHARP_STEMWORDS_SOURCES) $(CSHARP_RUNTIME_SOURCES) $(CSHARP_SOURCES)
43 $(MCS) -unsafe -target:exe -out:$@ $(CSHARP_STEMWORDS_SOURCES) $(CSHARP_RUNTIME_SOURCES) $(CSHARP_SOURCES)
44--
452.21.0
46