Hi Dave, hi Jussi

On Sat, 1 Dec 2018 17:15:41 -0500 John David Anglin
<dave.ang...@bell.net> wrote:
> On 2018-12-01 4:50 p.m., Jussi Pakkanen 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?

I've filed https://github.com/systemd/systemd/pull/11380

Let's hope this get merged upstream.

Dave, can you test attached patch on hppa and report back with the results?

Thanks,
Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
diff --git a/debian/control b/debian/control
index 8d879ad..f6930a2 100644
--- a/debian/control
+++ b/debian/control
@@ -18,7 +18,7 @@ Build-Depends: debhelper (>= 10.4~),
                docbook-xsl,
                docbook-xml,
                m4,
-               meson (>= 0.44),
+               meson (>= 0.49),
                gettext,
                gperf,
                gnu-efi [amd64 i386 arm64],
diff --git a/debian/rules b/debian/rules
index 0d2fcdf..6e558bf 100755
--- a/debian/rules
+++ b/debian/rules
@@ -36,6 +36,7 @@ export DEB_BUILD_PROFILES += noudeb
 endif
 
 CONFFLAGS = \
+	-Db_pie=true \
 	-Db_lto=true \
 	-Drootlibdir=/lib/$(DEB_HOST_MULTIARCH) \
 	-Dsplit-usr=true \
diff --git a/meson.build b/meson.build
index b338886..e6b28e1 100644
--- a/meson.build
+++ b/meson.build
@@ -362,13 +362,6 @@ possible_link_flags = [
         '-Wl,-z,now',
 ]
 
-# 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
-
 if cc.get_id() == 'clang'
         possible_cc_flags += [
                 '-Wno-typedef-redefinition',

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to