cbp2make icon indicating copy to clipboard operation
cbp2make copied to clipboard

Handling of library names starting with colon

Open aafemt opened this issue 1 year ago • 1 comments

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

aafemt avatar Oct 17 '24 15:10 aafemt

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.

mirai-computing avatar Feb 20 '25 21:02 mirai-computing