Re: build environment: a different makefile - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: build environment: a different makefile
Date
Msg-id 20080207092152.GC12085@svr2.hagander.net
Whole thread Raw
In response to Re: build environment: a different makefile  ("Dave Page" <dpage@postgresql.org>)
Responses Re: build environment: a different makefile
List pgsql-hackers
On Thu, Feb 07, 2008 at 08:09:24AM +0000, Dave Page wrote:
> On Feb 6, 2008 11:12 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 
> > I've sometimes wondered whether the SUBSYS.o files really offer any
> > advantage compared to just linking all the individual .o files.  They
> > certainly eat disk space, but perhaps they save some time ... or perhaps
> > not, especially in a one-off build.
> 
> Getting rid of them would certainly make building OSX universal binaries easier.
> 
> > I suppose that we might fall foul of command line length limits on
> > some platforms :-(.  The output of your find command amounts to nearly
> > 11000 characters in HEAD.
> 
> What do other large build systems do?

FWIW, the MSVC build ends up writing the list of object files to a temp
file and then having the linker read that list. (This is all done behind
the scenes though, it's not something we made up) IIRC the gcc linker can
also take the commandline from a file instead of the actual commandline,
which should be workable I think.

//Magnus


pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Page-at-a-time Locking Considerations
Next
From: Zdenek Kotala
Date:
Subject: Re: Page-at-a-time Locking Considerations