Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #930925
| 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:00 +0100 |
| Message-ID | <x0lsR-2dv-3@gated-at.bofh.it> (permalink) |
| References | <wXIFk-oQ-9@gated-at.bofh.it> <wXIFk-oQ-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Sat, Nov 24, 2018 at 6:09 PM John David Anglin <dave.anglin@bell.net> wrote:
> My understanding is -fPIE should be used when creating objects for a
> PIE executable. -fPIC should be used when creating objects for a shared
> library. Only one is recorded when -flto is specified.
I reviewed the code and we only add -fPIE arguments when building
executables. The discussion on the other bug seems to support this:
-------------
Most of the problem is in systemd's top meson.build file:
# the oss-fuzz fuzzers are not built with -fPIE, so don't
# enable it when we are linking against them
if not fuzzer_build
possible_cc_flags += '-fPIE'
possible_link_flags += '-pie'
endif
------------
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.
Back to linux.debian.bugs.dist | Previous | Next — Next in thread | Find similar | Unroll 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