jimporter / bfg9000

bfg9000 - build file generator
https://jimporter.github.io/bfg9000
BSD 3-Clause "New" or "Revised" License
76 stars 21 forks source link

Add support for removing the 'lib' prefix on libraries. #110

Closed jmgao closed 5 years ago

jmgao commented 5 years ago

The names of Windows DLLs generally aren't prefixed with 'lib'. Meson calls this name_prefix.

jimporter commented 5 years ago

Your use case for this is building a DLL file from MinGW right? An easier solution might be to always remove the lib from MinGW-built DLLs; it's not actually clear to me if outputting libfoo.dll by default is the right behavior. In fact, after consulting the MinGW docs briefly, it seems that not having the lib prefix is the (an?) accepted way to do things: http://www.mingw.org/wiki/sampledll.

(Customizing the lib prefix is still something bfg should do, but I think that should be reserved for more-esoteric cases than this. This case should Just Work.)

jmgao commented 5 years ago

Yep. That sounds reasonable to me.