You are not logged in.

#1 2014-05-02 19:23:27

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,730
Website

Modifying CFLAGS for fstack-protector-strong

Stupid question perhaps, but according to this ML post, Allan plans to modify /etc/makepkg.conf to use this new flag.  Now that gcc-4.9-1 is in [core], I thought I would get ahead of the curve. 

1) Is this the correct syntax?

CFLAGS="-march=native -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4"

2) Is there another modification to the file as well?

Thanks.

EDIT: Should probably mention that I checked in git but found no commit that would answer my question.

Last edited by graysky (2014-05-02 19:29:22)

Offline

#2 2014-05-03 03:59:29

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,655

Re: Modifying CFLAGS for fstack-protector-strong

Yes, that's the correct syntax, and there should be no other changes needed AFAIK.

Edit, other than changing CXXFLAGS, too, of course.

Last edited by Scimmia (2014-05-03 04:00:01)

Offline

#3 2014-05-03 09:51:05

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,730
Website

Re: Modifying CFLAGS for fstack-protector-strong

Thanks, Scimmia.  I just redirect:

CFLAGS="-march=native -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4"
CXXFLAGS="${CFLAGS}"

Offline

Board footer

Powered by FluxBB