Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #930932

Bug#914543: meson adds both -fPIE and -fPIC options in LTO compiles with gcc-8

From Jussi Pakkanen <jpakkane@gmail.com>
Newsgroups linux.debian.bugs.dist
Subject Bug#914543: meson adds both -fPIE and -fPIC options in LTO compiles with gcc-8
Date 2018-12-01 23:30 +0100
Message-ID <x0lVT-2Dl-9@gated-at.bofh.it> (permalink)
References <wXIFk-oQ-9@gated-at.bofh.it> <x0lsR-2dv-3@gated-at.bofh.it> <x0lVT-2Dl-11@gated-at.bofh.it> <wXIFk-oQ-9@gated-at.bofh.it> <x0lVT-2Dl-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun, Dec 2, 2018 at 12:15 AM John David Anglin <dave.anglin@bell.net> wrote:

> > Thus it would seem that this is not a bug in Meson, but instead in
> > systemd's build setup as the pie arguments are added by the latter.
> I agree but Michael doesn't have a clear idea how to fix the issue.
> Would the "b_pie" option help?

The correct way to enable PIE executables with Meson is to remove all
your own compiler and link flags related to pie and set b_pie to true.
This is a fairly new feature and probably the reason why systemd is
not using it.

If this does not do the right thing then that is a bug in Meson and we
need to fix it.

Back to linux.debian.bugs.dist | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#914543: meson adds both -fPIE and -fPIC options in LTO compiles with gcc-8 Jussi Pakkanen <jpakkane@gmail.com> - 2018-12-01 23:00 +0100
  Bug#914543: meson adds both -fPIE and -fPIC options in LTO compiles with gcc-8 Jussi Pakkanen <jpakkane@gmail.com> - 2018-12-01 23:30 +0100
    Bug#914543: meson adds both -fPIE and -fPIC options in LTO compiles with gcc-8 John David Anglin <dave.anglin@bell.net> - 2018-12-02 17:40 +0100
      Bug#914543: meson adds both -fPIE and -fPIC options in LTO compiles with gcc-8 Jussi Pakkanen <jpakkane@gmail.com> - 2018-12-02 18:00 +0100
    Bug#914543: meson adds both -fPIE and -fPIC options in LTO compiles with gcc-8 John David Anglin <dave.anglin@bell.net> - 2019-01-13 15:30 +0100
  Bug#914543: meson adds both -fPIE and -fPIC options in LTO compiles with gcc-8 John David Anglin <dave.anglin@bell.net> - 2018-12-01 23:40 +0100
    Bug#909396: Bug#914543: meson adds both -fPIE and -fPIC options in LTO compiles with gcc-8 John David Anglin <dave.anglin@bell.net> - 2019-01-10 16:30 +0100
      Bug#909396: Bug#914543: meson adds both -fPIE and -fPIC options in LTO compiles with gcc-8 John David Anglin <dave.anglin@bell.net> - 2019-01-10 17:50 +0100
    Bug#909396: Bug#914543: meson adds both -fPIE and -fPIC options in LTO compiles with gcc-8 John David Anglin <dave.anglin@bell.net> - 2019-01-12 19:40 +0100

csiph-web