cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: static compile for curl?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 15 Aug 2000 08:45:45 +0200 (MET DST)

On Mon, 14 Aug 2000, Claude Cormier wrote:

> Although I succeed with the LD_LIBRARY_PATH options to execute curl from
> the shell, I am getting into trouble when I execute curl from within a
> PHP script. Even if I try to create the env variable with putenv, curl is
> not working from the script.

That is truely weird.

> So, I guess I have to try the static compile. And what is the easiest way
> to create a standalone exec with all the embedded libraries..
>
> I tried ./configure --enable-static=/whatever

You have to disable the shared libs like:

./configure --disable-shared

(and remember to remove the config.cache file before running configure again)

-- 
      Daniel Stenberg - http://daniel.haxx.se - +46-705-44 31 77
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
Received on 2000-08-15