[FFmpeg-cvslog] configure: Split adding of CFLAGS and CPPFLAGS for hardened toolchain

Diego Biurrun git at videolan.org
Tue Sep 16 12:10:22 CEST 2014


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Wed Jul 30 05:09:47 2014 -0700| [2d589273dd36c5eb271a035ea0e669b64dae257f] | committer: Diego Biurrun

configure: Split adding of CFLAGS and CPPFLAGS for hardened toolchain

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2d589273dd36c5eb271a035ea0e669b64dae257f
---

 configure |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index 81e1d3f..6e210bb 100755
--- a/configure
+++ b/configure
@@ -2553,8 +2553,9 @@ case "$toolchain" in
         add_ldflags -fprofile-arcs -ftest-coverage
     ;;
     hardened)
-        add_cflags  -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all
-        add_ldflags -Wl,-z,relro -Wl,-z,now
+        add_cppflags -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
+        add_cflags   -fno-strict-overflow -fstack-protector-all
+        add_ldflags  -Wl,-z,relro -Wl,-z,now
     ;;
     ?*)
         die "Unknown toolchain $toolchain"



More information about the ffmpeg-cvslog mailing list