Skip to content

Instantly share code, notes, and snippets.

@AlisterH
Created March 1, 2026 20:51
Show Gist options
  • Select an option

  • Save AlisterH/15d63961e303e29778fa18e3acf2cbfe to your computer and use it in GitHub Desktop.

Select an option

Save AlisterH/15d63961e303e29778fa18e3acf2cbfe to your computer and use it in GitHub Desktop.
solaris junk
export CFLAGS="-m32"
export CXXFLAGS="-m32"
export LDFLAGS="-m32 -L/opt/csw/lib -R/opt/csw/lib"
export PKG_CONFIG_PATH=/opt/csw/lib/pkgconfig
@AlisterH
Copy link
Author

AlisterH commented Mar 2, 2026

echo 'int main() { return 0; }' | cc -x c - -lmlib -o /tmp/test_mlib && echo "mlib found" || echo "mlib NOT found"

@AlisterH
Copy link
Author

AlisterH commented Mar 2, 2026

wget https://download.gnome.org/sources/gdk-pixbuf/2.28/gdk-pixbuf-2.28.2.tar.xz
tar xf gdk-pixbuf-2.28.2.tar.xz
cd gdk-pixbuf-2.28.2
mkdir build && cd build
export PKG_CONFIG_PATH=
export LDFLAGS="-lm"
export CPPFLAGS=""
../configure --prefix=/opt/csw --with‑out‑mlib
gmake
gmake install

export PATH=/opt/csw/bin:$PATH
export PKG_CONFIG_PATH=/opt/local/lib/pkgconfig:$PKG_CONFIG_PATH

@AlisterH
Copy link
Author

AlisterH commented Mar 2, 2026

wget https://download.gnome.org/sources/glib/2.28/glib-2.28.8.tar.xz
tar xf glib-2.28.8.tar.xz
cd glib-2.28.8

Configure to install locally

./configure --prefix=/opt/local --enable-static --disable-shared
gmake
gmake install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment