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

Re: hardening=+all caused CPPFLAGS missing (-D_FORTIFY_SOURCE=2)



On Thu, Nov 5, 2020 at 4:38 AM Andrey Rahmatullin - wrar@debian.org
<pkgoyq.xpt.268e963c9d.wrar#debian.org@ob.0sg.net> wrote:
>
> On Wed, Nov 04, 2020 at 10:28:04PM -0500, Tong Sun wrote:
> > Hi,
> >
> > I used
> >
> > export DEB_BUILD_MAINT_OPTIONS = hardening=+all
> >
> > to fix the hardening issue, but it yields the following error from blhc:
> >
> > CPPFLAGS missing (-D_FORTIFY_SOURCE=2)
> >
> > See https://salsa.debian.org/debian/shc/-/jobs/1126952
> >
> > I've tried some "solutions" that I found from the internet but nothing worked.
> >
> > Anyone know how to fix this please?
> Remove "export CPPFLAGS = " from debian/rules.

That was actually my "fix" -- There wasn't such a line and I got
`CPPFLAGS missing (-D_FORTIFY_SOURCE=2)` in the first place.

Anything else I can do?


Reply to: