Inasmuch as "perhaps strip doesn't use getopt(3)" /and/
"perhaps strip doesn't conform to the XCU"
(https://pubs.opengroup.org/onlinepubs/9699919799/utilities/strip.html;
note no changes since Issue 2, which means this has been a requirement
realistically since 1989
(it's in my copy of XSI Issue 3, saying it's equivalent to Issue 2,
but it's only Volume 1, and it's unclear to me if the XBD USG
was fully developed; Issue 2 hasn't been archived),
and definitely since SUSv1, whose Guideline 10 and Utility Description
Defaults, OPTIONS, Default Behaviour are both as present-day)
can both hold at the same time, I guess?
You can probably tell I'm quite sceptical any such strip exists.
My target usecase is for third-party programs running install -s,
which, without modification, cannot be made to work if strip is binutils
strip and the binary is non-native.
Of course I can edit them to be install --strip-program=llvm-strip -s ...,
but, y'know, at some point using install instead of cp and strip
stops making sense. I guess it'd just be nice if ${CC:-cc}
synergised with ${STRIP:-strip}.
Functionality is greatly improved since the target is no longer
effectively hard-coded into the caller. The impact of this is reduced on
FreeBSD since it uses elftoolchain strip, which appears to be
target-agnostic.
Best,
наб