You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by mp...@apache.org on 2016/12/22 06:03:52 UTC

[3/4] mesos git commit: Removed the use of `FORTIFY_SOURCE` from libprocess.

Removed the use of `FORTIFY_SOURCE` from libprocess.

`FORTIFY_SOURCE` is no longer used when hardening. This is to prevent
the warning that some versions of gcc/libc throw when `FORTIFY_SOURCE`
is used without optimizations. The warning turns into an error via
`-Werror` and fails the whole build.

Review: https://reviews.apache.org/r/54950/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/b6bf8ab8
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/b6bf8ab8
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/b6bf8ab8

Branch: refs/heads/master
Commit: b6bf8ab866e8fbe3ff7f3a422dc7ef14c1d60de9
Parents: 0f01d71
Author: Aaron Wood <aa...@verizon.com>
Authored: Wed Dec 21 18:49:01 2016 -0500
Committer: Michael Park <mp...@apache.org>
Committed: Thu Dec 22 01:02:23 2016 -0500

----------------------------------------------------------------------
 3rdparty/libprocess/Makefile.am | 2 --
 1 file changed, 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/b6bf8ab8/3rdparty/libprocess/Makefile.am
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/Makefile.am b/3rdparty/libprocess/Makefile.am
index c33ae43..5e7fdd0 100644
--- a/3rdparty/libprocess/Makefile.am
+++ b/3rdparty/libprocess/Makefile.am
@@ -25,8 +25,6 @@ if ENABLE_HARDENING
 # Protect many of the functions with stack guards
 # (either -fstack-protector-strong or -fstack-protector depending on compiler support).
 AM_CXXFLAGS += @STACK_PROTECTOR@
-# Better protect against potential buffer overflow attacks.
-AM_CXXFLAGS += -D_FORTIFY_SOURCE=2
 # Produce position independent code when appropriate.
 AM_CXXFLAGS += -fPIC -fPIE
 endif