Re: How to static link a program?



Le samedi 05 f�ier 2005 �0:54 -0800, Ben Johnson a �it :
> On Sat, Feb 05, 2005 at 08:48:49AM +0100, Jean Br?fort wrote:
> ...
> > use configure --enable-static --disable-dynamic doesn't work?
> 
> no, that doesn't seem to do anything at all.  I'm using the configure
> script that glade made for me to build my app.  Should it work?
> 
> ben elsa:~/Projects/hpntpos$ grep static configure
> static char *e (p, i)
> static char *f (char * (*g) (char **, int), char **p, ...)
> static char *e (p, i)
> static char *f (char * (*g) (char **, int), char **p, ...)
> static char *e (p, i)
> static char *f (char * (*g) (char **, int), char **p, ...)
> 

Add:
 AC_ENABLE_STATIC
AX_DISABLE_SHARED
to configure.in (or configure.ac), run autoconf then configure.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]