scanf123 / embedded-control-library

Automatically exported from code.google.com/p/embedded-control-library
0 stars 0 forks source link

Build process recompiles all object files for shared and static #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Compiling all object files for a shared and static build simultaneously
results in those object files getting compiled twice, needlessly.

Original issue reported on code.google.com by d.ston...@gmail.com on 15 Sep 2009 at 7:14

GoogleCodeExporter commented 8 years ago
Can be done - see the cmake FAQ:

http://www.cmake.org/Wiki/CMake_FAQ#Does_that_mean_I_have_to_build_all_my_librar
y_objects_twice.2C_once_for_shared_and_once_for_static.3F.21__I_don.27t_like_tha
t.21

You need to make sure both static and shared use the same flags (e.g. -fPIC is 
a key
one). However, static and shared are often different in other ways too, so this 
isn't
really a big priority for the cmake builders.

Not really a huge issue for me yet either.

Original comment by d.ston...@gmail.com on 18 Dec 2009 at 6:14

GoogleCodeExporter commented 8 years ago

Original comment by d.ston...@gmail.com on 18 Dec 2009 at 6:14