How to compile Pub.OpenAL on Linux?

BlitzMax Forums/BlitzMax Programming/How to compile Pub.OpenAL on Linux?

Many thanks Brucey!!!
I've testet it with Import "libdl.a" or "libdl.so" but all doesn't work. (libdl.so can't import and libdl.a can't statically linked)

So for the future - how do you know that "-ldl" is needed? What can be linked with Import(outside of *.bmx, *.c, *.a, *.cpp)?

cu olli