On Fri, 12 Dec 2003, Jorge Arellano Cid wrote:
Hi,
---------- Forwarded message ---------- Date: Thu, 11 Dec 2003 23:30:05 +0000 From: Victor M. <voremo@safe-mail.net> To: jcid@softhome.net Subject: dillo
Can dillo be compiled into a static, self-contained executable to run under X? (.i.e. that it can be pressed on and run from a publication CD, with no need for GTK libraries on the target computer...?) Victor ---------------------------------------
Does anyone here know/done it?
sure, why not? mzz@alien:/z/src/dillo/dillo/src$ gcc -o dillo-static chain.o commands.o cache.o capi.o doc.o dw.o dw_aligned_page.o dw_bullet.o dw_button.o dw_container.o dw_embed_gtk.o dw_ext_iterator.o dw_gtk_scrolled_frame.o dw_gtk_scrolled_window.o dw_gtk_statuslabel.o dw_gtk_viewport.o dw_hruler.o dw_image.o dw_list_item.o dw_marshal.o dw_page.o dw_style.o dw_table.o dw_table_cell.o dw_tooltip.o dw_widget.o gtkframeset.o findtext.o selection.o focus.o web.o pagemark.o progressbar.o dillo.o bookmark.o dicache.o dns.o gif.o jpeg.o png.o html.o image.o misc.o tab.o interface.o history.o nav.o plain.o menu.o prefs.o colors.o bitvec.o klist.o strbuf.o url.o cookies.o IO/libDio.a -lpthread /usr/lib/libpng.a /usr/lib/libjpeg.a /usr/lib/libz.a /usr/lib/libgtk.a /usr/lib/libgdk.a /usr/lib/libgmodule.a /usr/lib/libglib.a /usr/X11R6/lib/libXi.a /usr/X11R6/lib/libXext.a /usr/X11R6/lib/libX11.a /usr/lib/libm.a -ldl mzz@alien:/z/src/dillo/dillo/src$ strip --strip-all dillo-static mzz@alien:/z/src/dillo/dillo/src$ ldd dillo-static libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0x4000e000) libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x4001e000) libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x40021000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x411c2000) mzz@alien:/z/src/dillo/dillo/src$ ls -la dillo-static -rwxr-xr-x 1 mzz mzz 2063896 2003-12-12 20:13 dillo-static the libc and dl were linked dynamically, because glibc tries to read some 'modules' and crashes, when these are not compatible with the glibc version (makeing it impossible to reliable run static-glibc linked program on other host or even after upgradeing libraries on the same machine).