8000 Handling of library names starting with colon · Issue #7 · mirai-computing/cbp2make · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Handling of library names starting with colon #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
aafemt opened this issue Oct 17, 2024 · 1 comment
Open

Handling of library names starting with colon #7

aafemt opened this issue Oct 17, 2024 · 1 comment

Comments

@aafemt
Copy link
aafemt commented Oct 17, 2024

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

@mirai-computing
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0