[Mono-devel-list] [PATCH] Remove cyg prefix from native DLLs on Windows
Raja R Harinath
rharinath at novell.com
Thu Jun 30 07:00:44 EDT 2005
Kornél Pál <kornelpal at hotmail.com> writes:
> My patch (I attached to this message) simply modifies the generated
> aclocal.m4 just after it is generated to use no prefix for the target
> cygwin. It is done by removing a single 'cyg' string from the file. It works
> as expected without any drawbacks. It is searching for the string
> 's/^lib/cyg/' and replacing it to 's/^lib//'. It is very unlikely to apper
> this string in any context other than modifying the output file name of the
> library so I think it's safe to use.
As I said before, I dislike this solution, and don't want it in the
> I think there is no other solution (except modifying other generated files
> like libtool) to modify or remove the prefix of DLL files. And if we will
> use mingw32 target it will have 'lib' prefix but I think there should be no
> prefix at all. So we should modify aclocal.m4 anyway.
No. Libtool provides you a way to avoid the 'lib' prefix entirely (I
think you have to say that the .so is a module). I don't mind having
MonoPosixHelper.so on linux either.
There's no problem with having 'libmono-0.dll', since it is a link
dependency, and it's nice to have the major version in the name. Since
we anyway have the -0, the 'lib' prefix isn't a PITA.
So, as I said before, fix the mingw32 build, and tell libtool exactly
what you want.
More information about the Mono-devel-list