net-libs/libssh: Set -DWITH_STACK_PROTECTOR=OFF
authorJeroen Roovers <jer@gentoo.org>
Sat, 1 Sep 2018 08:52:13 +0000 (10:52 +0200)
committerJeroen Roovers <jer@gentoo.org>
Sat, 1 Sep 2018 09:01:34 +0000 (11:01 +0200)
commit9acfbf506aef6feb95d6d8c6896bc840fd609f2e
tree5336bb33afe0ad0e6e9ddb99cb1d94e97ef852e9
parent692632c4e1fd984551915af8a658c558ce39c7b5
net-libs/libssh: Set -DWITH_STACK_PROTECTOR=OFF

The build system injects -fstack-protector _after_ CFLAGS, which means
that when CFLAGS define a stronger SSP, this lowers its protection
instead of improving it.

Additionally, the test for the compiler flag succeeds on HPPA when it
shouldn't, causing the build to fail later on:

In file included from src/agent.c:53:0:
include/libssh/priv.h:169:4: error: #error "Your system must provide a __func__ macro"

Bug: https://bugs.gentoo.org/59506
Package-Manager: Portage-2.3.48, Repoman-2.3.10
net-libs/libssh/libssh-0.7.4.ebuild
net-libs/libssh/libssh-0.7.5-r2.ebuild
net-libs/libssh/libssh-0.8.1.ebuild
net-libs/libssh/libssh-9999.ebuild