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 1, 2026

/opt/csw/bin/pkgutil -i libpng15_dev libpng15_15

@AlisterH
Copy link
Author

AlisterH commented Mar 2, 2026

wget https://download.sourceforge.net/libpng/libpng-1.5.30.tar.gz
gunzip libpng-1.5.30.tar.gz
tar -xf libpng-1.5.30.tar
cd libpng-1.5.30
./configure --prefix=/opt/csw
make
make install

@AlisterH
Copy link
Author

AlisterH commented Mar 2, 2026

AC_ARG_VAR([MAKE], [make utility to use])

if test -z "$MAKE"; then
dnl User did not override; try to find gmake first
AC_CHECK_PROGS([MAKE], [gmake make], [no])
fi

@AlisterH
Copy link
Author

AlisterH commented Mar 2, 2026

+AC_ARG_VAR([MAKE], [make utility to use])
+
+if test -z "$MAKE"; then
+dnl User did not override; try to find gmake first
+AC_CHECK_PROGS([MAKE], [gmake make], [no])
+fi

@AlisterH
Copy link
Author

AlisterH commented Mar 2, 2026

AC_ARG_VAR([MAKE], [make utility to use])

if test -z "$MAKE"; then
dnl User did not override; try to find gmake first
AC_CHECK_PROGS([MAKE], [gmake make])
fi

if test "$MAKE" = "no"; then
AC_MSG_ERROR([Make utility not found. Please install GNU Make and try again>
else
case "$MAKE" in
gmake|GNU)
AC_MSG_NOTICE([Using GNU Make: $MAKE])
;;
*)
AC_MSG_WARN([WARNING: You are not using GNU Make. Make may not work>
;;
esac
fi

@AlisterH
Copy link
Author

AlisterH commented Mar 2, 2026

AC_ARG_VAR([MAKE], [make utility to use])

if test -z "$MAKE"; then
dnl User did not override; try to find gmake first
AC_CHECK_PROGS([MAKE], [gmake make])
fi

if test "$MAKE" = "no"; then
AC_MSG_ERROR([Make utility not found. Please install GNU Make and try again>
else
case "$MAKE" in
gmake|GNU)
AC_MSG_NOTICE([Using GNU Make: $MAKE])
;;
*)
AC_MSG_WARN([WARNING: You are not using GNU Make. Make may not work>
;;
esac
fi

@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