next up previous index
Next: Separate Loading Up: Joint Loading Previous: Using Shared Libraries

Static Linking

We modify the boot/$ARCH/INST_PARAMS file:   the macro USER_OBJECTS will contain all necessary files and libraries, just like the tk_load/1   call for dynamic linking of .o files or USER_OBJECTS in the Makefile for .so files. Then we invoke boot/INSTALL to reinstall ECLiPSe .

Note: In older ECLiPSe releases the INSTALL script ignores the USER_OBJECTS macro. If this is the case, please edit the INSTALL script by replacing the line  

$CC $LDFLAGS $OBJECTS $LIBRARIES $SYSLIBS -o $EXE_DIR/eclipse.exec
by
$CC $LDFLAGS $OBJECTS $USER_OBJECTS $LIBRARIES $SYSLIBS -o $EXE_DIR/eclipse.exec
In this new ECLiPSe we simply load the tk library and start tk/1  ; the extensions will be initialised automatically.

For Tree/linux_i386 we will have in INST_PARAMS  
USER_OBJECTS = /home/micha/tcl/tree-4.0.1/src/libTkTree.a \
    /home/micha/tcl/tree-4.0.1/tkAppInit.o -lg++
and for sparc_sunos5
USER_OBJECTS = /opt/unsupported/src/tcl/tree-4.0.1/tkAppInit.o \
    /opt/unsupported/src/tcl/tree-4.0.1/src/libTkTree.a \
    -L/opt/packages/gnu/lib -lg++ \
    -L/opt/packages/gnu/lib/gcc-lib/sparc-sun-solaris2.3/2.5.7 -lgcc
and when the new ECLiPSe is installed we simply call lib(tk), tk([]) to start Tk with the extensions.



Micha Meier
Tue Jul 2 09:49:39 MET DST 1996