Possible bug: Library suffix generation

Added by Chris Chapman over 4 years ago

Again, posted here because I'm not sure it's a bug per se.

I have a few libraries which have .s in their names (e.g. lua-5.1.1). If I name the target libLua, then the output file is libLua.lib, however if I name the target lua-5.1.1 (as I'd like to for automation reasons elsewhere in our jam structure), it generates lua-5.1.lib

So basically if LinkLibraries references a library which has a . in its name, it's treated as a suffix and stripped off prior to adding a .lib. Similarly, the LibraryFromObjects rule strips off any existing suffix to name the output library.

I've patched my Jambase to get away from this problem (basically replacing uses of :S=$(SUFLIB) with concatenation of $(SUFLIB) instead), but I'm not sure if this is something that's correct in general. I'm cautious about making my Jambase drift too far away from the canonical released version...


Replies (2)

RE: Possible bug: Library suffix generation - Added by Joshua Jensen over 4 years ago

Ouch. That doesn't sound nice at all. :(

I believe your fix will work just fine. I will check the fix into the Git repository after I have tested it everywhere.

Thanks for the bug report.

Josh

RE: Possible bug: Library suffix generation - Added by Joshua Jensen over 4 years ago

This is now fixed in the latest Git repository commit.

Josh

(1-2/2)