• Tom Lane's avatar
    Eliminate parallel-make hazard in ecpg/preproc. · 29180e5d
    Tom Lane authored
    Re-making ecpglib's typename.o is dangerous because another make thread
    could be doing that at the same time.  While we've not heard field
    complaints traceable to this, it seems inevitable that it'd bite someone
    eventually.  Instead, symlink typename.c into the preproc directory and
    recompile it there.  That file is small enough that compiling it twice
    isn't much of a penalty.  Furthermore, this way we get a .o file that's
    made without shlib CFLAGS, which seems cleaner.
    
    This requires adding more stuff to the module's -I list.  The MSVC
    aspect of that is untested, but I'm sure the buildfarm will tell me
    if I got it wrong.
    
    Per a suggestion from Peter Eisentraut.  Although this is theoretically
    a bug fix, the lack of field reports makes me feel we needn't back-patch.
    
    Discussion: https://postgr.es/m/31364.1543511708@sss.pgh.pa.us
    29180e5d
Mkvcbuild.pm 33.2 KB