rui314 / mold

Mold: A Modern Linker 🦠
MIT License
13.69k stars 448 forks source link

Use $CXX to detect cxxflags #1281

Closed ziyao233 closed 2 weeks ago

ziyao233 commented 2 weeks ago

Use $CXX instead of $CC to detect whether C++ programs could be built statically. Add function test_cxxflags for convenience.

Fix test error in an environment where C++ programs cannot be built statically, with error like:

mold: fatal: library not found: c++

rui314 commented 2 weeks ago

Thanks!