Skip to content

Commit

Permalink
CDRIVER-599: Don't set -D_FORTIFY_SOURCE for --enable-optimizations
Browse files Browse the repository at this point in the history
It is part of --enable-hardening which makes far more sense
  • Loading branch information
bjori committed Oct 26, 2015
1 parent 2c56f26 commit cb440a1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions build/autotools/Optimizations.m4
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ OPTIMIZE_LDFLAGS=""
AS_IF([test "$enable_optimizations" != "no"], [
check_link_flag([-Wl,-Bsymbolic], [OPTIMIZE_LDFLAGS="$OPTIMIZE_LDFLAGS -Wl,-Bsymbolic"])
CFLAGS="$CFLAGS -O2"
if test "$c_compiler" = "gcc"; then
CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
fi
])

# Enable Link-Time-Optimization
Expand Down

0 comments on commit cb440a1

Please sign in to comment.