summaryrefslogtreecommitdiff
path: root/emulators/qemu/patches/patch-meson_mesonbuild_compilers_cpp_py
diff options
context:
space:
mode:
authorShokara Kou <kou@13f0.net>2023-12-30 15:50:12 -0500
committerShokara Kou <kou@13f0.net>2023-12-30 15:50:19 -0500
commit3fe4845098ca3478fc2d83e6fc943fec4c0459d6 (patch)
treebbc684e930540b942195493a096a283f7e4bf0bf /emulators/qemu/patches/patch-meson_mesonbuild_compilers_cpp_py
parent0f66e5686e2ce39c6821efcf2ead70bfcf4a4a83 (diff)
import qemu from openbsd 7.3 ports
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):