ntpsec versions
Hal Murray
hmurray at megapathdsl.net
Tue Mar 29 20:45:37 UTC 2016
verm at darkbeer.org said:
> Can you elaborate on this please? Are you talking about rebuilding each
> version.c for the respective tool it is meant for if a file for that tool
> changes?
Yes, If you are relinking ntpd, waf should recompile ntpd/version.c as part
of this batch. It doesn't need to rebuild version.c unless git HEAD has
changed. (The git hash is in version.c)
The problem is that version.c is using __DATE__ and __TIME__ which are the
compile times and we want the link times.
Plan B would be to get the build/link time at runtime somehow. I think we
discussed it but didn't come up with a way to do it. (That was a long time
ago.)
> If so this can be done.
That would be great, but far from high priority in my opinion.
It might be a good example for how to do things with waf.
--
These are my opinions. I hate spam.
More information about the devel
mailing list