cbp2make
cbp2make copied to clipboard
Handling of library names starting with colon
GNU linker has a feature of -l option:
If namespec is of the form :filename, ld will search the library path for a file called filename
It is quite convenient if you need to force static linking of only one library from list.
Code::Block build system is aware of it and if a library name is starting with colon it puts the name into the linker command line as is:
x86_64-w64-mingw32-g++.exe -o colonlib.exe objs\main.o -s -l:libatomic.a
But cbp2make generates makefile with the extension being cut off:
LIB = -l:libatomic
Test project is attached. colonlib.cbp.7z.zip
Thanks, it looks like I just have to sync it to the latest C::B sources cause we're clearly doing things in a different way here.