Producing a staticly-linked package from ports

Bob Richards rrichard at
Fri Nov 30 05:18:18 PST 2007

On Thu, 29 Nov 2007 17:21:03 -0500
Mikel King <mikel.king at> wrote:

>     Although I know this can be done, I am not certain of the exact 
> procedure.

Looks like this can NOT be done. I asked the author of claws-mail, and
received this response.


From: Colin Leroy <colin at>
To: claws-mail-users at
Cc: rrichard at
Subject: Re: statically-linked version of CM
Date: Fri, 30 Nov 2007 13:15:52 +0100
X-Mailer: Claws Mail 3.1.0cvs44 (GTK+ 2.12.0; i686-pc-linux-gnu)

On 30 November 2007 at 11h11, Bob Richards wrote:


> I compiled claws-mail 3.0.2 with make CFLAGS="$CFLAGS -static", but
> when I moved the executable to the older install and tried to execute
> it I get: /libexec/ Shared object "" not
> found, required by "claws-mail"
> What is the proper way to produce a statically compiled claws-mail?  

I don't know... I think the problem is that libgtk uses dlopen() to open
modules, so you can't really statically link a GTK app...



So, at least in the case of claws-mail, this does not appear to be
possible. Unless someone here has something else to try?


// \\ The ASCII
\\ // Ribbon Campaign
 \V/  Against HTML
 /A\  eMail!
// \\
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list