From: nisse@lysator.liu.se (Niels Möller) Cc: nettle-bugs@lists.lysator.liu.se Date: Sun, 02 Oct 2016 10:22:04 +0200
Eli Zaretskii eliz@gnu.org writes:
And one more gripe: why doesn't Nettle have the standard 'install-strip' target in its Makefile?
TL;DR: I guess that's an oversight, I'd need sme advice to get it right.
I'm not an expert, but I will try to tell what I know.
What's the simplest way to to that? Is it enough to patch the top-level Makefile.in like below?
That's a start, although libraries need extra care, as you suspect.
And then exactly what is it that should be stripped? I see that the make targets for installing both shared and static libraries use $(INSTALL_DATA) rather than $(INSTALL_PROGRAM), so libraries won't be affected. Those targets are a decade old, but I think it followed GNU standards at the time.
When handling libraries, I imagine one need to be a little careful to use the right one of
strip strip -s strip --strip-debug strip --strip-unneded
Shared libraries need --strip-unneded, static libraries need --strip-debug followed by ranlib.
and I'm not sure which is implied by install -s.
It's a synonym for --strip-all, so it's only pertinent to executable programs.