tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Deterministic C++ files

On Wed, Jul 16, 2008 at 11:17:50AM +1000, matthew green wrote:
> if you want the seeds to be unique across builds with different paths
> then you really need to trim them down like you meantioned i believe.

Attached patch does that. I'm not sure yet it is enough as GCC seems to
do some magic itself, but I will be looking at that separately.

RCS file: /data/repo/netbsd/src/share/mk/,v
retrieving revision 1.97
diff -u -p -r1.97
---      6 May 2008 22:19:11 -0000       1.97
+++      16 Jul 2008 01:22:58 -0000
@@ -51,7 +51,13 @@ LINK.c?=     ${CC} ${CFLAGS} ${CPPFLAGS} ${L
 CXX?=          c++
${CFLAGS:N-Wno-traditional:N-Wstrict-prototypes:N-Wmissing-prototypes:N-std=gnu99}   ${CXX} ${CXXFLAGS} ${CPPFLAGS} -c
+__ALLSRC1=     ${empty(DESTDIR):?${.ALLSRC}:${.ALLSRC:S|^${DESTDIR}|^destdir|}}
 OBJC?=         ${CC}

Home | Main Index | Thread Index | Old Index