[gtkada] [ANNOUNCE] LinXtris 0.1a - A Tetris Clone
duliomatos
duliomatos at bol.com.br
Sat Jun 21 03:31:15 CEST 2003
> so, gnat uses to create Dynamically linked binaries, and we can put
> -largs -s to make it creating statically-linked binary, isn't it ?
>
> why is it a disadvantage that the needed libraries may not be present
> on the target machine ???
> i have to program a proprietary software ; if i've right understood, i
> need to make statically-linked binary to allow users to put it on any
> computer, isn't it ?
>
Actually the -largs -s option strips
the debugging symbols from the file to
make it smaller. To compile statically
you should use
"gnatmake -static
program.adb -bargs -static"
so that it
won't depend on libgnat. For the
executable not depend on libGtkAda you
should use
"gnatmake program.adb
`gtkada-config --static`".
Or you could use
"gnatmake program.adb
-static `gtkada-config --static`
-bargs -static"
so that your program
will not depend on both.
You could distribute the libraries
along with the executable but a static
binary doesn't require libraries
installation.
Dulio Matos Leite
__________________________________________________________________________
Seleção de Softwares UOL.
10 softwares escolhidos pelo UOL para você e sua família.
http://www.uol.com.br/selecao
More information about the gtkada
mailing list