[PATCH] libao not linking right in MacOSX 10.4
In MacOS 10.4 one will find problems about missing symbols namely:
This can be fixed by deleteing all of the statements in configure that say "-Ddlsym=dlsym_auto_underscore". This will break 10.2 and eariler. I do not have 10.3 to test on. This can be done by running
sed 's/-Ddlsym=dlsym_auto_underscore//g' configure > configure.new && mv -f configure.new configure && chmod +x configure
After doing this there will still be missing symbols from the CoreAudio framework (something like AudioHardwareGetProperty usually). This is because the -framework CoreAudio has been left in the generated makefile in the src/plugins/macosx directory. I cannot narrow it down to fix it properely, but a hack is to cd to this directory, type 'make', then copy the last 'gcc' command (it ends in -lpthread for my machine), then type '-framework CoreAudio' at the end and rerun the command. Then type make install from the top directory and all should work.
The command should look like:
gcc -flat_namespace -undefined suppress -o .libs/libmacosx.so -bundle .libs/ao_macosx.o -lpthread -framework CoreAudio
This would have been picked up had the '-undefined suppress' option been left out.