-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add pkgconfig file #190
Comments
Snowball doesn't yet build a shared library (there are patches floating around for it, but nothing in a suitable state for merging yet). |
Snowball also still doesn't install anything... people who are distributing a shared library have to manually cp the library into /usr/lib64 or wherever. |
Yes, but that's literally a separate issue (#189) - please don't mix discussions. |
It really is not a separate thing, though. It's a prerequisite. A pkg-config file has to include the path that the library and header file is installed to, it cannot do that unless it is in fact installed. |
Hi all first time contributor Here is a pkgconfig file i created for libstemmer
To conferm libstemmer.so is picked up from pkgconfig I use libxmlb-0.3.21 build from Beyond Linux From Scratch (BLFS) book
I use ldd to check that libstemmer is included in libxmlb.so
I do not know how to test the functions of libstemmer but i hope this points people in the right direction or gives someone an idea. This is a install script I used after build libstemmer.
This file is need is for the modified GNUmakefile
I created a GNUmakefile.patch file from an early version of 2.2.0 diff file , to manually modify the GNUmakefile from the git folder . This was the closest matching diff to patch the GNUmakefile i could find. The result is :
|
Sorry the GNUmakefile.patch i posted earlier did not format well so i have placed it in my old git project file with a link for those who want the patch https://github.com/sidrat/mylfsos/blob/master/patches/GNUmakefile.patch |
The text box for GitHub comments says "use markdown to format your comment" as a hint that you should use markdown. Don't paste raw text, paste triple-backticks enclosed code blocks. You can edit your previous comment to fix that mistake (or delete it entirely). |
thanks for the hint , i don't use markdown much. |
In general, if you want to submit a patch then open a PR instead of pasting patch text into comments or putting a patch file in some random other git repo. However for this patch that wouldn't actually help as I can't merge a patch which adds shared library support but with a hardcoded assumptions that are wrong for some platforms (not all platforms name shared libraries with a |
What constraints are there on how to add shared library support? Does it have to use a GNUmakefile or is using another build system (automake, meson) on the table? |
Now that snowball builds a shared library a pkgconfig file to find the library would be much appreciated.
The text was updated successfully, but these errors were encountered: