diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-07-21 18:53:44 +0200 |
|---|---|---|
| committer | Jussi Pakkanen <jussi.pakkanen@mailbox.org> | 2025-07-29 21:58:47 +0300 |
| commit | 013cf44d86e1b31f9990484a86dac77882d97f16 (patch) | |
| tree | 7d4c6343b90c72842bf0ca233a85750b5d3d8454 | |
| parent | 9b40c5fe4a9899daa214c736726ca4739138e24a (diff) | |
| download | meson-013cf44d86e1b31f9990484a86dac77882d97f16.tar.gz | |
build: use PIE for Rust as well
Ensure that mixed Rust/C executables compile the non-Rust translation
units with a compatible relocation model.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| -rw-r--r-- | mesonbuild/build.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index a7f7545a2..fcdb7925f 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -782,6 +782,8 @@ class BuildTarget(Target): # relocation-model=pic is rustc's default and Meson does not # currently have a way to disable PIC. self.pic = True + self.pie = True + if 'vala' in self.compilers and self.is_linkable_target(): self.outputs += [self.vala_header, self.vala_vapi] self.install_tag += ['devel', 'devel'] |
