Menu

#9 configuration file: explicit global require objects

Release_1.3
open
nobody
5
2013-01-10
2003-08-14
No

allow for global addition of require objects to every
module that is instrumented by confix. the reason for
this is that we sometimes want to compile libraries
with certain flags set that are required by another
module - even if there is no direct usage of that
module seen.

a good example for this is the pthread library: if you
use thread aware and thread unaware code in the same
executable, the results are pretty unclear. so, at
least with pthread, you have to compile every file with
-D_REENTRANT -- even if that file does not directly use
anything of pthread.

with current confix this is not possible. commandline
macros, cflags and cxxflags are only propagated to a
module if a module in its dependency chain uses
pthread. if no module in the dependency chain does, the
module that is being built is rendered useless in a
multithreaded environment.

Discussion

  • Joerg Faschingbauer

    Logged In: YES
    user_id=665456

    implemented in 1.3.pre5 (?), but documentation is still missing

     
  • Joerg Faschingbauer

    Logged In: YES
    user_id=665456

    implemented in 1.3.pre5, but still not documented

     

Log in to post a comment.

MongoDB Logo MongoDB