7

I wanted that Makefile to avoid stripping binaries after building them, but there was no clear option for that. I only found this:

STRIP = strip

That tells where to find the executable that does the stripping. I changed it to a no-op executable, like "true".

So now I have
STRIP = true
to disable stripping.

Comments
  • 0
    That's confusing man
  • 0
    At least use full binary name /bin/true
  • 1
    no-op executable?!?
    Have you read the source code of 'true'?
    You should, it is pretty huge for a program which does only return true... 🤓
  • 0
    @liammartens it's a shameless hack indeed 🙃
  • 0
    @alkuzad that code will probably never get out of my laptop, so why bother?
  • 0
    @spky If I had read your comment 5 hours earlier I wouldn't have gotten the joke. What a coincidence that I just read a random Quora answer about this :).
  • 1
    @sm1th This was no joke.. (unfortunately)

    Just enjoy over 70 lines of code, someone else would squeeze into 4 lines:

    https://gist.github.com/xorrbit/...
  • 1
    @spky Oh I guess they were talking about an old version of the true command, which was an empty file because empty scripts exits with 0. And AT&T still had their copyright in it...

    This is not the article that I first saw (Can't find it) but here's another one explaining the history:

    https://quora.com/What-is-the-dumbe...
  • 1
    @sm1th Ah, ok. I didn't know the story with that copyright notice.
    Very weird story, indeed.
    Thanks for the link 😀
  • 0
    @spky Yeah that's why I thought you were being sarcastic when you said the source code was huge XD
  • 0
    @spky coreutils/src/true.c
    is made to handle those invocations:
    true --help
    &
    true --version
Add Comment