-
Notifications
You must be signed in to change notification settings - Fork 9
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
Static libraries is hard coded #18
Comments
Ugh... So. Archlinux and Gentoo by default ship dynamic libs and if those are not found, static. You can change this behaviour in your ebuild.conf (or however it's called) and in makepkg.conf. Most distros ship both, so I wouldn't blame @ugermann for not knowing arch and gentoo's behaviour, but you're right we should try to find .a and if not fallback to .so. We certainly want to package linux packages linked against .so |
I'm aware that I can add USE="static-libs" for libpcre2 to get a static lib in gentoo. But I shouldn't have to. |
The cmake setup is now checking for both static and dynamic pcre2 libraries on *nix setups. Looking for volunteers to provide a gentoo / arch linux workflow. |
And now you've broken OS X dynamic linking because that is .dylib. If you're going to do something sketchy, make it optional not the default. |
brew normally installs both so it's not an issue, but we can just add the dylib extension? |
https://stackoverflow.com/questions/3762057/cmake-how-to-produce-binaries-as-static-as-possible
I would also add that non-standard behavior should be an option and only sparingly the default.
|
I think we want prefer static 100% of the time for win32. It's preferable to have static build on mac just because we'd be distributing a. |
I understand static libraries can be a useful option, but hard coding only static libraries is bad practice.
ssplit-cpp/CMakeLists.txt
Line 60 in a2fd405
For example, this won't compile on Gentoo by default with the error
even though libpcre2 is installed, just the dynamic version.
While it currently blames on @XapaJIaMnu, the history shows this is simply an indentation of code that started with @ugermann
The text was updated successfully, but these errors were encountered: