Link postgres from all object files at once, to avoid the error-prone
authorPeter Eisentraut <peter_e@gmx.net>
Mon, 25 Feb 2008 17:55:42 +0000 (17:55 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Mon, 25 Feb 2008 17:55:42 +0000 (17:55 +0000)
commite61e976cd89ebba7ede635518d4963cb0014a409
tree4b2f35bceda8f1ab9d24443cb3ad87a489668b8e
parent6d530226f1cf34fe58b062085e67822490f9205f
Link postgres from all object files at once, to avoid the error-prone
SUBSYS.o step and allow for better optimization by the linker.

Instead of partial linking into SUBSYS.o, the list of object files is
assembled in objfiles.txt files that are expanded when the final
linking is done.

Because we are not yet sure how long command lines different platforms
can handle, the old way of linking is still available, by defining the
make variable PARTIAL_LINKING (e.g., make all PARTIAL_LINKING=1).  If
we determine that this is necessary for some platforms, then we will
document this in a more prominent place.
src/backend/Makefile
src/backend/common.mk