Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2014-07-30 16:09:47 +0400
committerDiego Biurrun <diego@biurrun.de>2014-09-16 11:18:53 +0400
commit2d589273dd36c5eb271a035ea0e669b64dae257f (patch)
tree911c355a0a5a2557bcb415759e20cba45c3b0456 /configure
parent00431bf874e1044b01e09a2266ef85d4ff8d44cc (diff)
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 81e1d3fc7f..6e210bbffd 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"