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

Bug#829329: Error combining hardening flags with Qt5



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:
>   C++ Compiler flags:       -Wall -Wextra -std=c++11 -fPIC -O2
> -Wno-deprecated-declarations
>   C++ Compiler user flags: -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2
> -fPIE -fstack-protector-strong -Wformat -Werror=format-security -fPIC
> The first line are the default lyx options. The second line are the
> automatically generated hardening options + "-fPIC" that I use as a
> workaround to override -fPIE.

You seem to have this line in LyX debian/rules:

  export DEB_BUILD_MAINT_OPTIONS = hardening=+all

Replace it with:

  export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie
  export DEB_CXXFLAGS_MAINT_APPEND = -fPIC

and it should build fine.

--
Dmitry Shachnev

Attachment: signature.asc
Description: PGP signature


Reply to: