HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: compiling httrack statically
Author: Xavier Roche
Date: 12/31/2003 09:38
 
> Using: ./configure --enable-shared=no
> Any ideas?  I need a static executable that can be run 
with
> NO libraries whatsoever.

in httrack.c, add the following lines after the #includes:

/* Static definitions */
static int fexist(char* s);
static int linput(FILE* fp,char* s,int max);

and in the end of the file, change the two function 
definitions to static ones:

static int fexist(char* s) {
...

static int linput(FILE* fp,char* s,int max) {
..

This should do the trick.

But remember that httrack will try to "plug" openSSL and 
ZLib libraries anyway. The only way to prevent that is to 
disable the dlopen feature inside the makefile.


 
Reply Create subthread


All articles

Subject Author Date
compiling httrack statically

12/31/2003 01:49
Re: compiling httrack statically

12/31/2003 09:38
Re: compiling httrack statically

12/31/2003 10:02




e

Created with FORUM 2.0.11