dlang / dub

Package and build management system for D
MIT License
674 stars 230 forks source link

Shared library target on Linux without "lib" prefix #677

Open JakobOvrum opened 9 years ago

JakobOvrum commented 9 years ago

The "lib" prefix is often not used for plugin-style shared libraries, and it doesn't seem like dub has a way to omit it.

My current use case is for hexchatd. The default name of a plugin is the name of the shared library file without the ".so" extension, so it's better if "lib" is never part of the file name to begin with, although a user can work around it by renaming the file when deploying their plugin.

MartinNowak commented 9 years ago

Postbuildcommand? The target is exported as DUB_TARGET_PATH/DUB_TARGET_NAME.

JakobOvrum commented 9 years ago

I am using a post-build command ATM, but it is clearly a tenuous workaround. Although with two-three platform-specific versions it can be made practically portable, it will never as portable as dub itself if it can't be supported without using a shell command.

John-Colvin commented 8 years ago

This would also be great for building python extensions, which cannot use the "lib" prefix without it being in the module name.