[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#879014: gpgme1.0: FTBFS on some arches: Qt needs a compile with -fPIC (PIE is not enough), hardening downgrades to PIE



Hi again!

On Mon, 9 Mar 2020 at 12:43, Lisandro Damián Nicanor Pérez Meyer
<perezmeyer@gmail.com> wrote:
>
> Hi!
>
> El lun., 9 mar. 2020 07:44, Thorsten Glaser <t.glaser@tarent.de> escribió:
>>
>> # same issue
>> forcemerge 879014 870383
>> retitle 879014 gpgme1.0: FTBFS on some arches: Qt needs a compile with -fPIC (PIE is not enough), hardening downgrades to PIE
>> # it still persists
>> found 879014 1.13.1-6
>> thanks
>>
>> Hi,
>>
>> > points out the problem: Qt wants to be compiled with -fPIC and sets up
>> > the CFLAGS appropriately, yet hardening comes into the way as it adds
>> > the PIE *after* the PIC.
>
>
> PIC implies PIE, so adding it after PIE is an error. Yes, this is a special case but not up to Qt to solve it.

That was a fast reply from phone, and I seemed to write it wrongly. In
this case Qt uses PIC, which is the right thing to do for libraries
(and Qt needs it that way).
PIE implies PIE so (and here is what I miss wrote above) PIE should
not be added if PIC was used.

Moreover PIC is more suitable for libraries, so it should be the right
choice here.

Hope that helps, and sorry for my typo in the first mail.

-- 
Lisandro Damián Nicanor Pérez Meyer
http://perezmeyer.com.ar/
http://perezmeyer.blogspot.com/


Reply to: