[Exim] Building a static eximon.bin

Top Page
Delete this message
Reply to this message
Author: Sheldon Hearn
Date:  
To: exim-users
Subject: [Exim] Building a static eximon.bin
Hi folks,

Has anyone had any joy trying to build a static eximon.bin? I really
don't want X11 libraries on my mail server just for eximon.bin, and I'd
really like to build a static binary on another non-production box and
then just copy the thing across.

I've never been very good at wrestling with linkers, and the closest
thing I've come up with is to prepend -pthread -static to the linker
command (gcc), and to insert -lSM -lICE immediately preceding -lX11.
This gets me down to only a handful of error messages, surrounding
duplicate symbols from libXaw.

Ciao,
Sheldon.