You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is the problem that it is using the C compiler to link C++ code or that it is using a compiler rather than a linker to link the code?
I believe $(LD) would be the proper solution, but there are situations where $(CC) (or $(CXX)) and $(LD) are not from the same build toolchain, in which case it is safer to use the compiler to link, but I guess we could check for what linker to use in configure: LD_C and LD_CXX
Hi, Magnus! Don't worry, I keep using all your projects, but they need less and less feedback every time!
My main problem is to use LTO over g++. I need to use g++ to link (or configure properly gold, but it's easier for me to use g++ directly). It's not a big deal for me since I've overridden project's Makefile.base and I just have to be careful when updating mklove, but I think a proper option at mklove installation or an automatic procedure in Makefile.base like some of the purposed would be OK. (I think that) it's impossible to build c++ "$(BIN)" project out of the box with mklove.
I believe $(LD) would be the proper solution, but there are situations where $(CC) (or $(CXX)) and $(LD) are not from the same build toolchain, in which case it is safer to use the compiler to link, but I guess we could check for what linker to use in configure: LD_C and LD_CXX
In that case, my project could use LD=$(CXX), and it's the easier solution to apply IMHO. mklove could even use LD=$(CC) by default, so modules update would be painless in the case that the project needs that requirement and the ones that do not need it will keep working, but it's just an idea, the call is yours :)
Only *.cpp object files are building using$(CXX). Should Makefile.base add a $ (BIN_CPP) target? Maybe do the final phase with $(LD)?
The text was updated successfully, but these errors were encountered: