Here is a 1st tip :
add -s to the linker options so the .dll will be smaller in size because it strips the debug informations that you don't need (unless you want to debug and develop Irrlitch itself...)
Now I'm trying to make the compile with directx8 more effective...
The tutorial about comiling with directx8 by stoffe works, BUT you need to add another dll to your project (d3dx8d.dll) so its 700KB more in size to download for the end-user that will play your game...
the problem with this dll that come with the directx package is that it is a debug dll. So, unlike the normal release dll, it is not included with the runtime libraries that come with windows... so people will absolutly need to download it if they want to play your game... also it is maybe slower than the normal dll (?) ...
so I don't really like to use it...
Apparently, visualC++ user don't need to use that d3dx8d.lib and use directly d3dx8.lib... but I'm not able to find a version of this lib for mingw...
So I tried to download the virsualc++ version and convert it with reimp, but it don't works...

so maybe I need to use other libraries... witch ones are linked with the visualc++ version?
I will try to do some more research... does someone already tried to do the same thing?
anyway, I will give you more info when I will find something else...