https://bugzilla.redhat.com/show_bug.cgi?id=1278676
Ľuboš Kardoš <lkardos(a)redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |CLOSED
Resolution|--- |NOTABUG
Last Closed| |2016-01-22 06:47:16
--- Comment #3 from Ľuboš Kardoš <lkardos(a)redhat.com> ---
Yes, the root cause of this error is that you have
'-specs=/usr/lib/rpm/redhat/redhat-hardened-ld' in your LDFLAGS and you don't
have its counterpart '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' in CFLAGS
because you completely rewrote optflags with '--define "optflags -g"'.
Maybe it would be better just to append to optflags instead of rewriting them.
You can do this with '--define "optflags `rpm -E %{optflags}` -g"'. If
you
really want to rewrite optflags then you have to modify accordingly also
%{__global_ldflags}. But I don't recommend completely rewrote optflags because
then you will create a package which is against fedora rules.
Why rpmbuild runs LDFLAGS='-Wl,-z,relro
-specs=/usr/lib/rpm/redhat/redhat-hardened-ld' forcibly?
Hardening all fedora packages [1] is a change which was announced, discussed
and approved. Rpm team doesn't initiated nor performed this change. I am not
entitled to revert this change. You can discuss your problem with owner of this
change [1].
Because this is not a bug in rpm. I am closing this as not a bug.
[1]
https://fedoraproject.org//wiki/Changes/Harden_All_Packages
--
You are receiving this mail because:
You are on the CC list for the bug.