From 59cfbf68e00aa774a9868101f423bd662938c15d Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Thu, 29 Jun 2023 09:00:24 -0700 Subject: [PATCH] compilers/cpp: Actually add the search dirs to for gcc We calculate them, but then don't use them. Clang does use them, so this looks like a simple oversight --- mesonbuild/compilers/cpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py index 3f8bf00ec..16e337b27 100644 --- a/mesonbuild/compilers/cpp.py +++ b/mesonbuild/compilers/cpp.py @@ -442,7 +442,7 @@ class GnuCPPCompiler(GnuCompiler, CPPCompiler): search_dirs: T.List[str] = [] for d in self.get_compiler_dirs(env, 'libraries'): search_dirs.append(f'-L{d}') - return ['-lstdc++'] + return search_dirs + ['-lstdc++'] class PGICPPCompiler(PGICompiler, CPPCompiler):