Scons doesn't work on OS X, and this patch doesn't fix that. However,
it does bring Scons closer. I'd like the patch to be approved by an OS
X developer as well as a Scons user, to make sure everything is all
right.
This patch allows the shared library to build I think successfully
(though I can't test yet). The examples fail to build because many of
the linker flags, for example -compatibility_version, are only valid
on dynamic libraries. The solution is to provide a mechanism to give
custom flags to the library environment that differ from the examples
environment. I'm not interested in hacking the scons files that much,
though, so I will pin it to another Scons user.
In any case, this brings Scons on OS X much closer than it was before,
so assuming the configure checks are passed by an OS X expert, it
should be good.