This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Static constuctors


"Boris V. Guzhov" wrote:
> But I need to invoke static constructors in main() thread context.
> 
> Then I tried to make the following:
> - I eddited ecos.ecc file:
>    CYGSEM_INVOKE_DEFAULT_STATIC_CONSTRUCTORS: user_value 1

CYGSEM_INVOKE_DEFAULT_STATIC_CONSTRUCTORS is indeed what you are looking
for here.

>   CYGSEM_LIBC_STARTUP_MAIN_THREAD: user_value 1
> - "ecosconfig resolve" prints:
> "C   CYGPKG_LIBC_STARTUP, "requires" constraint not satisfied:
> CYGINT_LIBC_STARTUP_CONTEXT == 1"
> 
> And I cannot  run "ecosconfig tree".
> 
> What's wrong?

It's an oversight in the CDL. For now just edit
language/c/libc/startup/current/cdl/startup.cdl and remove the "requires
CYGSEM_LIBC_STARTUP_MAIN_THREAD" line. I'll fix it properly in the sources
here.

Jifl
-- 
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS  Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow."  ||  These opinions are all my own fault

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]