[meson] Use a c linker for on Windows also

Using a C linker was limited to non-Windows as 20a840c7, let's
revisit this while transition to meson.

Packagers easily override that via the option and use a C++ linker
if needed.
This commit is contained in:
Ebrahim Byagowi 2020-05-21 19:34:56 +04:30
parent cc53fd158c
commit d9177a594b
1 changed files with 1 additions and 4 deletions

View File

@ -364,12 +364,9 @@ if have_icu and have_icu_builtin
deps += [icu_dep]
endif
if host_machine.system() == 'windows' or get_option('with_libstdcxx')
if not get_option('with_libstdcxx')
chosen_linker = 'cpp'
else
# our autotools port was limiting this to HAVE_GCC as https://github.com/harfbuzz/harfbuzz/commit/e784632
# let's see if that is needed anymore
# Use a C linker, not C++; Don't link to libstdc++
chosen_linker = 'c'
endif