summaryrefslogtreecommitdiff
path: root/emulators/qemu/patches/patch-meson_mesonbuild_compilers_cpp_py
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/qemu/patches/patch-meson_mesonbuild_compilers_cpp_py')
-rw-r--r--emulators/qemu/patches/patch-meson_mesonbuild_compilers_cpp_py21
1 files changed, 21 insertions, 0 deletions
diff --git a/emulators/qemu/patches/patch-meson_mesonbuild_compilers_cpp_py b/emulators/qemu/patches/patch-meson_mesonbuild_compilers_cpp_py
new file mode 100644
index 0000000..2ce3ee1
--- /dev/null
+++ b/emulators/qemu/patches/patch-meson_mesonbuild_compilers_cpp_py
@@ -0,0 +1,21 @@
1Index: meson/mesonbuild/compilers/cpp.py
2--- meson/mesonbuild/compilers/cpp.py.orig
3+++ meson/mesonbuild/compilers/cpp.py
4@@ -254,7 +254,7 @@ class ClangCPPCompiler(ClangCompiler, CPPCompiler):
5 search_dirs: T.List[str] = []
6 for d in self.get_compiler_dirs(env, 'libraries'):
7 search_dirs.append(f'-L{d}')
8- return search_dirs + ['-lstdc++']
9+ return search_dirs + ['-lc++']
10
11
12 class AppleClangCPPCompiler(ClangCPPCompiler):
13@@ -418,7 +418,7 @@ class GnuCPPCompiler(GnuCompiler, CPPCompiler):
14 search_dirs: T.List[str] = []
15 for d in self.get_compiler_dirs(env, 'libraries'):
16 search_dirs.append(f'-L{d}')
17- return ['-lstdc++']
18+ return ['-lestdc++']
19
20
21 class PGICPPCompiler(PGICompiler, CPPCompiler):