I am using the mingw form of the environment. I need the output dll to follow a particular format so a vendor-supplied program can access the dll methods.
I need something like the /DEF:"BrewOrion.def" option to the microsoft linker...
I think what you need is an import library to link your program against. This import library is created with the help of the .def file that specifies all DLL functions to export.
So the normal route to go is:
1. Write a .def file which contains DLL function names you want to export
2. Create an import library with
dlltool -d somedll.def -l libsomedll.a
3. Tell the linker to link against this import library.