Bug#829329: Error combining hardening flags with Qt5

2016-07-03 Thread Nikos Andrikos
Hi Dmitry, I'm aware of the workaround and this is what I'm currently doing. Leaving +pie (implicitly) in hardening flags makes no harm as the -fPIC from CFFLAGS_APPEND will override it. The reason for this bug report is that packages that use qt5 with hardening flags will encounter this issue, e

Bug#829329: Error combining hardening flags with Qt5

2016-07-02 Thread Dmitry Shachnev
Hi Nikos, On Sun, Jul 03, 2016 at 02:52:15AM +0200, Nikos Andrikos wrote: > The -fPIE flags comes from the automatically generated hardening > options, which override the the -fPIC flag that comes from lyx > Makefile, since it comes later in the argument list. > > lyx reports this configuration:

Bug#829329: Error combining hardening flags with Qt5

2016-07-02 Thread Nikos Andrikos
reopen -1 thanks Hi Lisandro, The -fPIE flags comes from the automatically generated hardening options, which override the the -fPIC flag that comes from lyx Makefile, since it comes later in the argument list. lyx reports this configuration: C++ Compiler flags: -Wall -Wextra -std=c++11

Bug#829329: Error combining hardening flags with Qt5

2016-07-02 Thread Lisandro Damián Nicanor Pérez Meyer
Hi Nikos! This is no qt bug, you need to use just -fPIC, avoiding -fPIE. Please note that there is no security reduction here as -fPIC implies -fPIE. Happy hacking! -- Lisandro Damián Nicanor Pérez Meyer http://perezmeyer.com.ar/ http://perezmeyer.blogspot.com/

Bug#829329: Error combining hardening flags with Qt5

2016-07-02 Thread Nikos Andrikos
Package: libqt5core5a Version: 5.6.1+dfsg-3 Severity: normal I'm trying to enable Qt5 support for the lyx package I maintain. I have already enabled hardening flags, and I get the following error when building the package: g++ -DHAVE_CONFIG_H -I. -I../../../src/support -I../.. -Wall -Wextra -I..