"Hoyt, David" hoyt6@llnl.gov writes:
The attached patch for configure.ac allowed for a normal compile w/ mingw-w64 w/ --enabled-shared.
Thanks for looking into this. Patch applied.
It's really only a stopgap since you would need to do something more intelligent when you detect --enable-shared and then dynamically adjust hogweed's link options.
Can you be a bit more concrete about what you think is needed? What are the different cases, and what should the link options be in each case? (I've read you earlier mail with some other issues, I hope to reply to it reasonably soon).
Do you think it would be possible to add libtool and pkg-config support?
Libtool: No. I think libtool is a reasonable idea, but I consider the current way it's implemented (a shell script of 9000+ lines invoked for each file being compiled) as way too awful. I strongly prefer the autoconf way, to select suitable compile and link flags during *configure*, and just substitute the right things in the Makefile. It makes it a *lot* easier to track down problems. Ideally, I'd prefer a libtool-ish autofonf macro which defines a set of autoconf substitutions, and nothing more.
pkg-config: Possibly, but I'm not so familiar with it. Do you want nettle's configure to use pkg-config to pick up gmp, or do you want nettle to install pkg-config stuff so others can use it to pick up nettle and hogweed?
Regards, /Niels