[eggheads-patches] Suggested patch, makes it easier to install Eggdrop using user-installed Tcl libs/headers.

FireEgl Eggdrop at FireEgl.CJB.Net
Wed Nov 13 06:28:00 CST 2002

This patch is intended to make it easier for people to install Eggdrop using Tcl that was installed under $HOME..

The current way to compile Eggdrop using a user-installed Tcl is to run ./configure with the --with-tclinc and --with-tcllib
Users also currently have to compile statically, or use "export LD_LIBRARY_PATH=$HOME/lib".
This patch puts the $HOME directories to the top of the search list for the tcl headers and libs.
It also uses the -rpath thingie so that the eggdrop executable knows where to find the tcl lib (no more need to set

I got the idea from compiling Tcl itself.. I noticed it uses -rpath when it links tclsh:

gcc -pipe -rdynamic  tclAppInit.o -L/usr/src/cvs/tcl/unix -ltcl8.4 -ldl  -lpthread -lieee -lm \
        -Wl,-rpath,/usr/lib -o tclsh

The attached patch is against Eggdrop v1.6.13+alltools-ordinal (CVS 1036555480 alltools-ordinal).
BTW, this is my first patch for Eggdrop.. =)

Any questions or comments, please send them to me at Eggdrop at FireEgl.CJB.Net as I'm not subscribed to EggDev anymore.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: rpath.patch
Type: application/octet-stream
Size: 2177 bytes
Desc: not available
URL: <http://lists.eggheads.org/pipermail/patches/attachments/20021113/a4c3aeb8/attachment.obj>

More information about the Patches mailing list