mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 00:32:31 +00:00
configure: allow compiler-specific flags for --disable-optimizations
ICC needs at least -O1 to link so add this when optimisations are otherwise disabled. Originally committed as revision 23013 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
fa36165adf
commit
b05394a081
3
configure
vendored
3
configure
vendored
@ -1731,6 +1731,7 @@ elif $cc --version 2>/dev/null | grep -q Intel; then
|
|||||||
AS_DEPFLAGS='-MMD'
|
AS_DEPFLAGS='-MMD'
|
||||||
speed_cflags='-O3'
|
speed_cflags='-O3'
|
||||||
size_cflags='-Os'
|
size_cflags='-Os'
|
||||||
|
noopt_cflags='-O1'
|
||||||
elif $cc -v 2>&1 | grep -q xlc; then
|
elif $cc -v 2>&1 | grep -q xlc; then
|
||||||
cc_type=xlc
|
cc_type=xlc
|
||||||
cc_version="AV_STRINGIFY(__IBMC__)"
|
cc_version="AV_STRINGIFY(__IBMC__)"
|
||||||
@ -2738,6 +2739,8 @@ if enabled small; then
|
|||||||
optimizations="small"
|
optimizations="small"
|
||||||
elif enabled optimizations; then
|
elif enabled optimizations; then
|
||||||
add_cflags $speed_cflags
|
add_cflags $speed_cflags
|
||||||
|
else
|
||||||
|
add_cflags $noopt_cflags
|
||||||
fi
|
fi
|
||||||
check_cflags -fno-math-errno
|
check_cflags -fno-math-errno
|
||||||
check_cflags -fno-signed-zeros
|
check_cflags -fno-signed-zeros
|
||||||
|
Loading…
Reference in New Issue
Block a user