This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Static constuctors
- To: "Boris V. Guzhov" <borg at int dot spb dot ru>
- Subject: Re: [ECOS] Static constuctors
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Wed, 11 Oct 2000 19:05:05 +0100
- CC: ecos-discuss at sourceware dot cygnus dot com
- Organization: Red Hat UK Ltd.
- References: <015401c02fb2$106bd380$7601a8c0@borg>
"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