rattler-build icon indicating copy to clipboard operation
rattler-build copied to clipboard

lib existence tests w/ mingw on windows

Open theAeon opened this issue 7 months ago • 6 comments

Hi all-currently trying to get a mingw variant of a package working and noticed that on windows, rattler build searches for Library/lib/$package.lib but does not search for Library/lib/lib$package.dll.a, which is the standard import lib format for mingw. Should that be checked for along with the corresponding lib$package.dll?

theAeon avatar May 09 '25 16:05 theAeon

Hold on-its possible I'm stupid and this is because i forgot to pass the install prefix. Will reopen if actually the case.

theAeon avatar May 09 '25 16:05 theAeon

Okay, now that I've verified its actually installing the library, I can safely say that this does not work.

theAeon avatar May 09 '25 17:05 theAeon

Is the .a a static library?

wolfv avatar May 09 '25 17:05 wolfv

.dll.a is how mingw indicates an import library.

Sorta the equivalent of .lib, except .lib can be both. Static mingw libs are just .a.

theAeon avatar May 09 '25 17:05 theAeon

Would you be able to make a PR to add this extension on Windows?

wolfv avatar May 11 '25 21:05 wolfv

Probably. I'm not exactly experienced in rust (and by that I mean I've never actually used it) but it shouldn't be a particularly difficult tweak.

theAeon avatar May 12 '25 02:05 theAeon