-
Notifications
You must be signed in to change notification settings - Fork 465
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
makefile.shared: Don't use libtool #594
base: develop
Are you sure you want to change the base?
Conversation
5344722
to
597fe4b
Compare
I'm not sure what is up with the failing test? Seems to be happening with the |
79375a5
to
5a67f1a
Compare
There appears to be some kind of indeterminate failure that often hits the |
6e2e14b
to
7ee2ff5
Compare
36bc8fc
to
859f545
Compare
No, that issue was fixed by 038db7e |
I rebased this PR against the |
after having a discussion in #autotools I'm pretty sure that we'll be breaking something on other platforms than GNU/Linux ... but I'm also not sure how we should tackle this resp. if it's really required ...
The only non-Linux I know of who packages ltc is @gahr for FreeBSD and @karel-m for perl-cryptX which also has Windows(&Mac?) support. I'll keep this open until I get feedback from them whether this change would be fine for them resp. what needs to change. |
Hi, thanks! I can't comment on the goodness / reasonableness of the approach, but I can build just fine on FreeBSD :) |
One difference, though, is that before makefile.shared used to produce both shared and static libraries. Now I have to use makefile.unix to produce the static lib. Is that intended? |
From the https://github.com/libtom/libtomcrypt#building-the-library I can add the static library back or the
I was scared of this, but the current usage of libtool is not ideal. Build systems should depend on the libtool script generated in the build directory and not the one installed on the system which will then cause problems with for instance rlibtool which depends on this generated script to determine if its building shared, static or both. However libtomcrypt and libtommath unfortunately do not use autotools so it is missing the I think this leaves two obvious choices, either use a standard autotools build which would be more robust, but would be a little slower and would be disruptive to downstream and developers when at least The former option is also a lot of effort given the way the build system is currently written, but I can try to do it if that is the preferred approach. |
Meh... if we'll merge this PR it'll come with a change to the README. We're not going to implement our even worse version of libtool ;) Users who want static and shared libraries then would have to run two builds. Would this be acceptable @gahr ? Also there's still #586 which will be the "fancy new $h17"(c) instead of going for autotools, since ltm also already has support for cmake (and apparently I get the feeling "it's not that bad at all"^TM). I've some refinements of #586 locally which I will finalize soon'ish, so we can maybe close that one pretty soon. So in the end we'll have |
I guess so, yeah, as long as we make sure that |
I think this was a consequence of not having the generated It would not be hard to add this to my PR, but there should be some consensus if its a good idea or not first. :) |
This seems like it might have lost some traction, but I just wanted to say many thanks to @orbea for this commit. Even if it isn't merged yet, these changes worked a charm to make cross-compiling for Windows (from Linux) possible. Just needed to set the |
Gentoo Bug: https://bugs.gentoo.org/777084
This changes the
makefile.shared
build to not require libtool during the build instead of the existing hacks. This is helpful for avoiding the already existing hacks for slibtool. I am not sure this is the direction the libtomcrypt / libtommath projects want to go, but I am proposing it as an option.Note: I tested this on Gentoo and Slackware linux, but there may be issues for other platforms I can't personally test and they should be tested first.