From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Larmour To: "Boris V. Guzhov" Cc: ecos-discuss@sourceware.cygnus.com Subject: Re: [ECOS] Static constuctors Date: Wed, 11 Oct 2000 11:05:00 -0000 Message-id: <39E4ABD1.5494CE84@redhat.com> References: <015401c02fb2$106bd380$7601a8c0@borg> X-SW-Source: 2000-10/msg00120.html "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