Deterministic builds, part 2

Erik Cederstrand erik at cederstrand.dk
Thu Dec 2 10:08:15 UTC 2010


Hi Ryan,

Den 02/12/2010 kl. 05.01 skrev Ryan Stone:

> asn1.c uses the assert macro, while I believe uses __FILE__.

Thanks for the help! asn1.c does indeed import src/include/assert.h, which optionally uses __FILE__ if NDEBUG is not defined. I've tried adding  -DNDEBUG to my CFLAGS, but apart from a build error I'm investigating now, this doesn't help with all cases. __FILE__ is used liberally in at least src/sys/sys/.

I wonder if I could hack __FILE__ to be a path relative to src/. That would be a way to fix all the source file paths I see.

Erik


More information about the freebsd-hackers mailing list