MingW makefile

lgoss007 wrote on Friday, June 25, 2004:

I’m sort of new to make files and was wondering if someone could tell me what the -mdll option does on this line:
CFLAGS_DLL = $(CFLAGS) -mdll -DGLFW_BUILD_DLL

Thanks…

marcus256 wrote on Wednesday, July 07, 2004:

It may be something I just picked up when trying to make DLLs (there are several different ways to do it). I THINK that it it not necessary to have it as a command line argument when compiling the .o’s, but perhaps it is when compiling the .dll. Sometime I will change the way the GLFW DLL is built with MinGW to use ‘gcc -shared’ instead of dllwrap.