Re: [Flightgear-devel] Fixes for parallel/SMP make compilation

2002-12-05 Thread Erik Hofman
Kain wrote:

I've libtoolized the makefiles for current CVS for SimGear and FlightGear.  This allows GNU make to properly handle the dependencies for SMP (parallel) compile.

This naturally speeds up compiles significantly.  Does anyone want the diffs?


Do you use libtool to generate shared object libraries, or juts static 
libraries? People have pointed out that using shared objects in C++ 
doesn't work all that great, especially in a development environment 
(like FlightGear).

If this patch generates static libraries I don't see a problem.
It might even be used to generate one statically linkable libsimgear 
file instead of 17 different libraries. But that is open for discussion.

Erik



___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Fixes for parallel/SMP make compilation

2002-12-05 Thread Roman Grigoriev
Good Day Kian
Please sent me your diffs
Thanx in advance
Roman



___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] Fixes for parallel/SMP make compilation

2002-12-05 Thread Kain
On Thu, Dec 05, 2002 at 10:43:28AM +0100, Erik Hofman wrote:
 Do you use libtool to generate shared object libraries, or juts static 
 libraries? People have pointed out that using shared objects in C++ 
 doesn't work all that great, especially in a development environment 
 (like FlightGear).
 
 If this patch generates static libraries I don't see a problem.
 It might even be used to generate one statically linkable libsimgear 
 file instead of 17 different libraries. But that is open for discussion.
With libtool all you have to do to have it generate only static libraries is
to specify

libblah_blah_la_LDFLAGS = -static

in the Makefile.am.  This is what the patch does... You then want to replace all the 
link-time references (blah_LDADD = ../libblah/blah.a) with (blah_LDADD = 
../libblah/blah.la).
-- 
Bryon Roche
Professional {Developer,Guru,Mad Scientist}
[EMAIL PROTECTED]
PGP Key Fingerprint: FE0D EC23 6464 726A CD54  48D3 04AD 86FE 6878 ABD5
Fortuna est caeca



msg10194/pgp0.pgp
Description: PGP signature


Re: [Flightgear-devel] Fixes for parallel/SMP make compilation

2002-12-05 Thread Curtis L. Olson
Kain writes:
 I've libtoolized the makefiles for current CVS for SimGear and
 FlightGear.  This allows GNU make to properly handle the
 dependencies for SMP (parallel) compile. 
 
 This naturally speeds up compiles significantly.  Does anyone want the diffs?

Bryon,

It would be interesting to see how you set up the library dependencies
to allow for parallel compiling, however as Erik suggested, we have
made the decision not to use libtool.  

Part of the reasoning is that with C++ libs, you can get bit by C++'s
name mangling if you build the lib with a different version of the
compiler than you build the final app.  People are running into this
all the time with metakit and you get strange link failures.

We did have everything libtoolized at one point and from a management
it ended up being a lot more hassle than it's worth.  The
simgear/flightgear libs are so closely tied that you rally get little
benefit from making the shared.

Regards,

Curt.
-- 
Curtis Olson   IVLab / HumanFIRST Program   FlightGear Project
Twin Cities[EMAIL PROTECTED]  [EMAIL PROTECTED]
Minnesota  http://www.menet.umn.edu/~curt   http://www.flightgear.org

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



PATCH for Parallel make on SimGear Flightgear (Re: [Flightgear-devel] Fixes for parallel/SMP make compilation)

2002-12-05 Thread Kain
On Thu, Dec 05, 2002 at 06:21:59AM -0600, Curtis L. Olson wrote:
 We did have everything libtoolized at one point and from a management
 it ended up being a lot more hassle than it's worth.  The
 simgear/flightgear libs are so closely tied that you rally get little
 benefit from making the shared.

Libtool just has better dependency handling than straight Automake.  You can tell 
libtool to make static libraries only, which I have done.

The patches are up at http://noir.kain.org/fg/, against SimGear-0.3 CVS and 
FlightGear-0.9 CVS as of 05 Dec 2002 16:03:11 -0600 or so.
-- 
Bryon Roche
Professional {Developer,Guru,Mad Scientist}
[EMAIL PROTECTED]
PGP Key Fingerprint: FE0D EC23 6464 726A CD54  48D3 04AD 86FE 6878 ABD5
Fortuna est caeca



msg10248/pgp0.pgp
Description: PGP signature


[Flightgear-devel] Fixes for parallel/SMP make compilation

2002-12-04 Thread Kain
I've libtoolized the makefiles for current CVS for SimGear and FlightGear.  This 
allows GNU make to properly handle the dependencies for SMP (parallel) compile.

This naturally speeds up compiles significantly.  Does anyone want the diffs?

-- 
Bryon Roche
Professional {Developer,Guru,Mad Scientist}
[EMAIL PROTECTED]
PGP Key Fingerprint: FE0D EC23 6464 726A CD54  48D3 04AD 86FE 6878 ABD5
Fortuna est caeca



msg10188/pgp0.pgp
Description: PGP signature