diff options
author | Martin Storsjö <martin@martin.st> | 2013-12-20 13:51:50 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2014-01-11 00:03:00 +0200 |
commit | 44a0a98f92c7df1452029aa0295e0ece9d2165ca (patch) | |
tree | ce9014492990e6866e071f82bdae843f02e228af /configure | |
parent | f8558780bbbbba05f4724772b27152f257cb7b05 (diff) | |
download | ffmpeg-44a0a98f92c7df1452029aa0295e0ece9d2165ca.tar.gz |
arm: Add an option for making sure NEON registers aren't clobbered
This is pretty much based on the same test for XMM registers.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -287,6 +287,8 @@ Developer options (useful when working on Libav itself): --enable-extra-warnings enable more compiler warnings --samples=PATH location of test samples for FATE, if not set use \$LIBAV_SAMPLES at make invocation time. + --enable-neon-clobber-test check NEON registers for clobbering (should be + used only for debugging purposes) --enable-xmm-clobber-test check XMM registers for clobbering (Win64-only; should be used only for debugging purposes) --enable-random randomly enable/disable components @@ -1174,6 +1176,7 @@ CONFIG_LIST=" lzo mdct memalign_hack + neon_clobber_test network nonfree pod2man @@ -4059,6 +4062,16 @@ test_ldflags -Wl,-Bsymbolic && append SHFLAGS -Wl,-Bsymbolic # -wN '..@*' is more selective than -x, but not available everywhere. check_stripflags -wN \'..@*\' || check_stripflags -x || strip='true' +enabled neon_clobber_test && + check_ldflags -Wl,--wrap,avcodec_open2 \ + -Wl,--wrap,avcodec_decode_audio4 \ + -Wl,--wrap,avcodec_decode_video2 \ + -Wl,--wrap,avcodec_decode_subtitle2 \ + -Wl,--wrap,avcodec_encode_audio2 \ + -Wl,--wrap,avcodec_encode_video2 \ + -Wl,--wrap,avcodec_encode_subtitle || + disable neon_clobber_test + enabled xmm_clobber_test && check_ldflags -Wl,--wrap,avcodec_open2 \ -Wl,--wrap,avcodec_decode_audio4 \ |