On 11/11/2012 18:50, Pau Garcia i Quiles wrote:
> On Sun, Nov 11, 2012 at 11:27 AM, JonY <[email protected]> wrote:
> 
>>> What were the "rigidities"? Maybe I can help
>>
>> We need to a way to inject .a libraries with additional objects compiled
>> from a different step,
> 
> See add_library(OBJECT):
> 
> http://www.cmake.org/Wiki/CMake/Tutorials/Object_Library
> 
> (in the past you needed to list all the source files again -the
> recommendation was to use a variable- and they would get compiled
> again, with the new -potentitally diferent- cflags)
> 

Close, but not yet.

"Object libraries may contain only sources (and headers) that compile to
object files. They may contain custom commands generating such sources,
but not PRE_BUILD, PRE_LINK, or POST_BUILD commands. Object libraries
cannot be imported, exported, installed, or linked."

>> and a generic way to differentiate lib32/ and
>> lib64/ def file for differing processing arguments.
> 
> I'm not sure I understand.
> 
> Do you mean finding out whether you are on 32-bit or 64-bit and
> generating a different .def depending on that? Or taking a different
> .def file when you are compiling depending on whether you are on
> 32-bit or 64-bit and/or generating (maybe cross-compiling) for 32-bit
> or 64-bit?
> 
> Whatever it is, there is a way to determine it. Or maybe I am missing
> what you mean?
> 

Pass different arguments to process them depending if they are from
lib32 or lib64. Of course, this should be done before the Object_Library
step.

Some of the .c sources need to be compiled twice with different CFLAGS
and injected into their respective libraries.



Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to