News for hackers. Stuff that matters.
Re:Stamping production binaries with build info by ddeville on Tuesday February 06, 2024 @12:28AM (#39271099)
Maybe I’m too boring but what about using preprocessor defines: stick it as a -D flag in CPPFLAGS in your makefile from and env var or wherever that info comes from and read it in the source.

At least it’s how I’ve always seen it done and it does feel simpler although, yeah, maybe not as fun :)

There are no comments on this comment yet.