Thread overview | |||||
---|---|---|---|---|---|
|
February 22, 2007 Can libgphobos be built as a shared object? | ||||
---|---|---|---|---|
| ||||
Statically linking in libgphobos.a makes every executable at least 600K. For an embedded system with limited storage this can be a problem. Is there a way to set it up to be used as a .so instead? |
February 23, 2007 Re: Can libgphobos be built as a shared object? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matt Brandt | Matt Brandt wrote:
> Statically linking in libgphobos.a makes every executable at least 600K. For an embedded system with limited storage this can be a problem. Is there a way to set it up to be used as a .so instead?
I believe you'll have to exclude phobos/internal/cmain.d from the library and call the setup routines in phobos/internal/dgccmain2.d manually. I've never tried it, but that should work in theory.
Sean
|
February 23, 2007 Re: Can libgphobos be built as a shared object? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matt Brandt | Matt Brandt wrote: > Statically linking in libgphobos.a makes every executable at least 600K. For an embedded system with limited storage this can be a problem. Is there a way to set it up to be used as a .so instead? http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=43626 - Gregor Richards |
Copyright © 1999-2021 by the D Language Foundation