summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2014-07-30 05:09:47 -0700
committerDiego Biurrun <diego@biurrun.de>2014-09-16 00:18:53 -0700
commit2d589273dd36c5eb271a035ea0e669b64dae257f (patch)
tree911c355a0a5a2557bcb415759e20cba45c3b0456 /configure
parent00431bf874e1044b01e09a2266ef85d4ff8d44cc (diff)
downloadffmpeg-streaming-2d589273dd36c5eb271a035ea0e669b64dae257f.zip
ffmpeg-streaming-2d589273dd36c5eb271a035ea0e669b64dae257f.tar.gz
configure: Split adding of CFLAGS and CPPFLAGS for hardened toolchain
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files 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"
OpenPOWER on IntegriCloud