tce-load -i compiletc glib2-dev Xorg-7.7-3d-dev https://cairographics.org/releases/cairo-1.16.0.tar.xz cd cairo-1.16.0 CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --disable-static --enable-xlib-xcb --enable-tee --enable-glesv2 [use either --enable-gl=yes or --enable-glesv2=yes. Not both at the same time] [--enable-glesv3 fails] find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [1m 57.17s] sudo make install cairo (version 1.16.0 [release]) will be compiled with: The following surface backends: Image: yes (always builtin) Recording: yes (always builtin) Observer: yes (always builtin) Mime: yes (always builtin) Tee: yes XML: no (disabled, use --enable-xml to enable) Xlib: yes Xlib Xrender: yes Qt: no (disabled, use --enable-qt to enable) Quartz: no (requires CoreGraphics framework) Quartz-image: no (disabled, use --enable-quartz-image to enable) XCB: yes Win32: no (requires a Win32 platform) OS2: no (disabled, use --enable-os2 to enable) CairoScript: yes PostScript: yes PDF: yes SVG: yes OpenGL: no (disabled, use --enable-gl to enable) OpenGL ES 2.0: yes OpenGL ES 3.0: no (disabled, use --enable-glesv3 to enable) BeOS: no (disabled, use --enable-beos to enable) DirectFB: no (disabled, use --enable-directfb to enable) OpenVG: no (disabled, use --enable-vg to enable) DRM: no (disabled, use --enable-drm to enable) Cogl: no (disabled, use --enable-cogl to enable) The following font backends: User: yes (always builtin) FreeType: yes Fontconfig: yes Win32: no (requires a Win32 platform) Quartz: no (requires CoreGraphics framework) The following functions: PNG functions: yes GLX functions: no (not required by any backend) WGL functions: no (not required by any backend) EGL functions: yes X11-xcb functions: yes XCB-shm functions: yes The following features and utilities: cairo-trace: yes cairo-script-interpreter: yes And the following internal features: pthread: yes gtk-doc: no gcov support: no symbol-lookup: no (requires bfd) test surfaces: no (disabled, use --enable-test-surfaces to enable) ps testing: no (requires libspectre) pdf testing: no (requires poppler-glib >= 0.17.4) svg testing: yes --- The Xlib/XCB functions feature is still under active development and is --- included in this release only as a preview. It does NOT fully work yet --- and incompatible changes may yet be made to Xlib/XCB functions specific --- API. --- The OpenGLESv2 surface backend feature is still under active development --- and is included in this release only as a preview. It does NOT fully work --- yet and incompatible changes may yet be made to OpenGLESv2 surface --- backend specific API. --- The tee surface backend feature is still under active development and is --- included in this release only as a preview. It does NOT fully work yet --- and incompatible changes may yet be made to tee surface backend specific --- API.