Links-full extension: http://links.twibright.com/download.php Notes from existing links build: http://tinycorelinux.net/11.x/x86/tcz/src/links/compile_links * Install extensions: compiletc bzip2-dev openssl-dev gpm libjpeg-turbo-dev libpng-dev libtiff tiff-dev Xorg-7.7-lib-dev zlib_base-dev liblzma-dev gcc_libs-dev libwebp1-dev brotli-dev bzip2-dev libevent-dev zstd-dev libavif-dev * sudo ln -s /usr/local/lib/libgomp.spec /usr/lib/libgomp.spec * export CFLAGS="-mtune=generic -Os -pipe -B/usr/local/lib" CXXFLAGS="-mtune=generic -Os -pipe -B/usr/local/lib" LDFLAGS="-Wl,-O1" - Needed second time for SVG: export CFLAGS="-mtune=generic -Os -pipe -B/usr/local/lib" CXXFLAGS="-mtune=generic -Os -pipe -B/usr/local/lib" LDFLAGS="-Wl,-O1" CC="gcc -I/usr/local/include/cairo -I/usr/local/include/librsvg-2.0 -I/usr/local/include/gdk-pixbuf-2.0" - But linking fails. * ./configure --prefix=/usr/local --enable-graphics OpenMP not working due to this error compiling test program: configure:8321: gcc -o conftest -fopenmp -I/usr/local/include conftest.c -llzma -lbz2 -lzstd -lbrotlidec -lz -L/usr/local/lib -lssl -lcrypto -lgpm -lm -levent 1> &5 configure:8321: gcc -o conftest -fopenmp -I/usr/local/include conftest.c -llzma -lbz2 -lzstd -lbrotlidec -lz -L/usr/local/lib -lssl -lcrypto -lgpm -lm -levent 1> &5 gcc: fatal error: cannot read spec file 'libgomp.spec': No such file or directory compilation terminated. - Fixed with: sudo ln -s /usr/local/lib/libgomp.spec /usr/lib/libgomp.spec - How should gcc be told where to look for this file? -"-B/usr/local/lib" - I think the file should live in /usr/local/lib/gcc/x86_64-pc-linux-gnu/11.2.0 http://gcc.gnu.org/onlinedocs/gcc-11.3.0/gcc/Directory-Options.html#Directory-Options - Nope, it can't find it there either. Just use the -B option. --------------------------------------------------------- Configuration results: Event handler: LIBEVENT IPv6: YES Supported compression: ZLIB BROTLI ZSTD BZIP2 LZMA SSL support: OPENSSL UTF-8 terminal: YES GPM support: YES Graphics enabled: YES Graphics drivers: FB X Font rendering: FREETYPE Image formats: GIF PNG XBM JPEG TIFF WEBP AVIF OpenMP: YES --------------------------------------------------------- - I can't get SVG support using librsvg to build. - webp works at least: https://i.ytimg.com/vi_webp/ORiBi3NKMQw/maxresdefault.webp - avif test: https://gif2avif.com/browser-test/ * make * ./links -g Works! (in X, test framebuffer and text-mode as well) * Convert icon to PNG: convert links-48x48.xpm links.png * sudo make DESTDIR=/tmp/links install-strip * split into links-full.tcz, links-doc.tcz based on files included in earlier extensions. - mkdir -p ~/src/links_ext/2.29/links-full - cd ~/src/links_ext/2.29/links-full - for dir in `sed 's/\/[^/]*$//g' ../../2.27/links-full.tcz.list | uniq`; do sudo mkdir -p "${dir#/}"; done - for file in `cat ../../2.27/links-full.tcz.list`; do sudo mv /tmp/links/"${file#/}" "${file#/}"; done - Note files not found. -- Repeat for links-doc - tree -ap /tmp/links - move remailing files to appropriate locations (files not found earlier are a hint) - cd /tmp/links -find -type f - Finds any files missed. - cd .. - sudo rm -R links - cd ~/src/links_ext/2.29/ - sudo chown -R root:root * * Generate file lists: for dir in `find -maxdepth 1 -mindepth 1 -type d`; do cd $dir; find usr ! -type d | sed "s/^/\//g" > ../$dir.tcz.list; cd ..; done * tce-load -i squashfs-tools * Generate extensions and checksums: * for dir in `find -maxdepth 1 -mindepth 1 -type d`; do mksquashfs $dir ${dir#./}.tcz; md5sum ${dir#./}.tcz > ${dir#./}.tcz.md5.txt; done * Make links-full.tcz.dep: ldd links-full/usr/local/bin/links linux-vdso.so.1 (0x00007ffe4478f000) libpthread.so.0 => /lib/libpthread.so.0 (0x00007f15079ef000) libavif.so.15 => /usr/local/lib/libavif.so.15 (0x00007f15079d2000) libwebp.so.7 => /usr/local/lib/libwebp.so.7 (0x00007f1507981000) libtiff.so.5 => /usr/local/lib/libtiff.so.5 (0x00007f1507910000) libjpeg.so.62 => /usr/local/lib/libjpeg.so.62 (0x00007f150789a000) libpng16.so.16 => /usr/local/lib/libpng16.so.16 (0x00007f150786c000) libfontconfig.so.1 => /usr/local/lib/libfontconfig.so.1 (0x00007f150782c000) libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x00007f150778b000) libX11.so.6 => /usr/local/lib/libX11.so.6 (0x00007f150766c000) liblzma.so.5 => /usr/local/lib/liblzma.so.5 (0x00007f1507643000) libbz2.so.1.0 => /usr/local/lib/libbz2.so.1.0 (0x00007f1507635000) libzstd.so.1 => /usr/local/lib/libzstd.so.1 (0x00007f150759e000) libbrotlidec.so.1 => /usr/local/lib/libbrotlidec.so.1 (0x00007f1507590000) libz.so.1 => /usr/lib/libz.so.1 (0x00007f150757b000) libssl.so.3 => /usr/local/lib/libssl.so.3 (0x00007f15074bc000) libcrypto.so.3 => /usr/local/lib/libcrypto.so.3 (0x00007f1507027000) libgpm.so.2 => /usr/local/lib/libgpm.so.2 (0x00007f1506e00000) libm.so.6 => /lib/libm.so.6 (0x00007f1506d3b000) libevent-2.1.so.7 => /usr/local/lib/libevent-2.1.so.7 (0x00007f1506cf0000) libgomp.so.1 => /usr/local/lib/libgomp.so.1 (0x00007f1506c9a000) libc.so.6 => /lib/libc.so.6 (0x00007f1506b04000) libaom.so.3 => /usr/local/lib/libaom.so.3 (0x00007f1506391000) libexpat.so.1 => /usr/local/lib/libexpat.so.1 (0x00007f150636e000) libharfbuzz.so.0 => /usr/local/lib/libharfbuzz.so.0 (0x00007f15062d8000) libxcb.so.1 => /usr/local/lib/libxcb.so.1 (0x00007f15062b2000) libXau.so.6 => /usr/local/lib/libXau.so.6 (0x00007f150701e000) libXdmcp.so.6 => /usr/local/lib/libXdmcp.so.6 (0x00007f1507016000) libbrotlicommon.so.1 => /usr/local/lib/libbrotlicommon.so.1 (0x00007f150628f000) libdl.so.2 => /lib/libdl.so.2 (0x00007f150700f000) libncursesw.so.6 => /usr/local/lib/libncursesw.so.6 (0x00007f1506231000) /lib/ld-linux-x86-64.so.2 (0x00007f1507f39000) libgraphite2.so.3 => /usr/local/lib/libgraphite2.so.3 (0x00007f1506214000) libglib-2.0.so.0 => /usr/local/lib/libglib-2.0.so.0 (0x00007f15060f8000) libpcre2-8.so.0 => /usr/local/lib/libpcre2-8.so.0 (0x00007f150607d000) deps: openssl.tcz ncursesw.tcz gpm.tcz libjpeg-turbo.tcz libpng.tcz fontconfig.tcz liblzma.tcz libtiff.tcz libX11.tcz ca-certificates.tcz gcc_libs.tcz libwebp1.tcz brotli.tcz bzip2-lib.tcz libevent.tcz libzstd.tcz libavif.tcz With dependency recursion: gpm.tcz fontconfig.tcz libtiff.tcz libX11.tcz ca-certificates.tcz gcc_libs.tcz libwebp1.tcz brotli.tcz libevent.tcz libavif.tcz * Copy links-full.tcz (+ dep, md5) to "tce/optional". * tce-load -i links-full * links -g &