1. EC Static Compiles...
- Posted by Doug Miller <orkim at kc.rr.com> Oct 11, 2002
- 385 views
EU Community, Is there any way to make static builds using ECU? Currently, I have yet = to=20 come up with a solution. I'm writing a utility which I will most likely = use=20 as a personal backup tool. However, this will be ran when /usr is not=20 mounted and thus the GPM and NCurses libs are not available. I *could*=20 surpass this using a staticly linked program using ECU. However, everyth= ing=20 I've tried so far has failed. Any suggestions, or should I look for anot= her=20 language. :( Doug Miller -orkim
2. Re: EC Static Compiles...
- Posted by jbrown105 at speedymail.org Oct 14, 2002
- 377 views
On 0, Doug Miller <orkim at kc.rr.com> wrote: > > EU Community, > > Is there any way to make static builds using ECU? Currently, I have yet to > come up with a solution. I'm writing a utility which I will most likely use > as a personal backup tool. However, this will be ran when /usr is not > mounted and thus the GPM and NCurses libs are not available. I *could* > surpass this using a staticly linked program using ECU. However, everything > I've tried so far has failed. Any suggestions, or should I look for another > language. :( > > Doug Miller > -orkim > What have you tried so far? In theory, adding the "-static" flag to gcc in the emake script SHOULD do the trick, however under Linux a staticly-linked program can not dlopen() itself. Maybe Rob links to the libraries via dlopen()? If that were the case then you won't be able to staticly link it. jbrown --
3. Re: EC Static Compiles...
- Posted by Doug Miller <orkim at kc.rr.com> Oct 15, 2002
- 381 views
On Monday 14 October 2002 5:28 pm, jbrown105 at speedymail.org wrote: > > What have you tried so far? In theory, adding the "-static" flag to gcc > in the emake script SHOULD do the trick, however under Linux a > staticly-linked > program can not dlopen() itself. Maybe Rob links to the libraries via > dlopen()? > If that were the case then you won't be able to staticly link it. > > jbrown So far I have tried using the -static flag. However, it seems that becau= se of=20 the lib that EC compiles use, it will not compile statically. I have als= o=20 tried to compile a static version of euphoria off the source code. This = has=20 by far gotten me the best results so far. I am currently trying to get=20 ncurses set up in a chroot in order to test this out. I have a feeling t= hat=20 this approach will work. I'll let you know any further findings. Doug Miller -orkim