diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-libs/snowball-stemmer/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-libs/snowball-stemmer/files')
-rw-r--r-- | dev-libs/snowball-stemmer/files/libstemmer_c-shared-library.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/dev-libs/snowball-stemmer/files/libstemmer_c-shared-library.patch b/dev-libs/snowball-stemmer/files/libstemmer_c-shared-library.patch new file mode 100644 index 000000000000..ca27fc517705 --- /dev/null +++ b/dev-libs/snowball-stemmer/files/libstemmer_c-shared-library.patch @@ -0,0 +1,23 @@ +--- /home/graaff/Desktop/Makefile 2009-11-06 01:57:50.000000000 +0100 ++++ Makefile 2013-07-18 10:57:32.482149252 +0200 +@@ -1,9 +1,13 @@ + include mkinc.mak +-CFLAGS=-Iinclude +-all: libstemmer.o stemwords +-libstemmer.o: $(snowball_sources:.c=.o) +- $(AR) -cru $@ $^ +-stemwords: examples/stemwords.o libstemmer.o +- $(CC) -o $@ $^ ++CFLAGS+=-Iinclude -fPIC ++all: libstemmer.so libstemmer.a stemwords ++libstemmer.so: $(snowball_sources:.c=.o) ++ $(CC) $(CFLAGS) -shared $(LDFLAGS) -Wl,-soname,$@.0d -o $@.0d.0.0 $^ ++ ln -s $@.0d.0.0 $@.0d ++ ln -s $@.0d.0.0 $@ ++libstemmer.a: $(snowball_sources:.c=.o) ++ $(AR) -crs $@ $^ ++stemwords: examples/stemwords.o libstemmer.so ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ + clean: +- rm -f stemwords *.o src_c/*.o runtime/*.o libstemmer/*.o ++ rm -f stemwords libstemmer.so* libstemmer.a *.o src_c/*.o runtime/*.o libstemmer/*.o |