So I've been try to build a native 64bit version of SFML with MinGW-w64, but since SFML doesn't ship with 64bit external libraries, I had to build them on my own.
Everything seems to work quite well (after editing the CMake macro file) except when trying to build the examples that use the static audio module of SFML it errors out with the following message:
..\..\lib\libsfml-audio-s.a(SoundBuffer.cpp.obj):SoundBuffer.cpp:(.text+0x65): undefined reference to `__imp_alBufferData'
..\..\lib\libsfml-audio-s.a(SoundBuffer.cpp.obj):SoundBuffer.cpp:(.text+0x68a): undefined reference to `__imp_alDeleteBuffers'
..\..\lib\libsfml-audio-s.a(SoundBuffer.cpp.obj):SoundBuffer.cpp:(.text+0xcf3): undefined reference to `__imp_alDeleteBuffers'
c:/dev/mingw64-rubenvb/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/bin/ld.exe: ..\..\lib\libsfml-audio-s.a(SoundBuffer.cpp.obj): bad reloc address 0x0 in section `.pdata'
c:/dev/mingw64-rubenvb/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/bin/ld.exe: final link failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
mingw32-make[2]: *** [examples/pong/pong.exe] Error 1
mingw32-make[1]: *** [examples/pong/CMakeFiles/pong.dir/all] Error 2
mingw32-make: *** [all] Error 2
Since I've build OpenAL myself I'm not sure if I've used the correct version or setup everything right and thus I'm not only asking how to resolve this issue, but also if there are any special steps required when building SFML?