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
by$CC $LDFLAGS $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.$CC $LDFLAGS $OBJECTS $USER_OBJECTS $LIBRARIES $SYSLIBS -o $EXE_DIR/eclipse.exec
For Tree/linux_i386 we will have in INST_PARAMSand when the new ECLiPSe is installed we simply call lib(tk), tk([]) to start Tk with the extensions.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_sunos5USER_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