libgdiplus-2.10.9 build fails on slacware current64 (2012-06)

Installing mono I needed to install libgdiplus. It failed with the following error:

/usr/lib64/gcc/x86_64-slackware-linux/4.7.0/../../../../x86_64-slackware-linux/bin/ld: testgdi.o: undefined reference to symbol 'g_free'
/usr/lib64/gcc/x86_64-slackware-linux/4.7.0/../../../../x86_64-slackware-linux/bin/ld: note: 'g_free' is defined in DSO /usr/lib64/ so try adding it to the linker command line
/usr/lib64/ could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[2]: *** [testgdi] Error 1
make[2]: Leaving directory `/usr/local/src/libgdiplus-2.10.9/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/libgdiplus-2.10.9'
make: *** [all] Error 2

The fix is simple, thanks to a mention in slacky pkg reports:

After running ./configure edit tests/Makefile and at line 130 replace LIBS = -lpthread -lfontconfig with LIBS = -lpthread -lfontconfig -lglib-2.0 -lX11

Until a patch is made this means we’ll have to install it manually.