mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
configure: Merge compiler/libc/os hacks sections
This commit is contained in:
parent
577326d430
commit
b3825723dc
15
configure
vendored
15
configure
vendored
@ -4115,25 +4115,24 @@ test -n "$libc_type" && enable libc_$libc_type
|
|||||||
probe_libc host_
|
probe_libc host_
|
||||||
test -n "$host_libc_type" && enable host_libc_$host_libc_type
|
test -n "$host_libc_type" && enable host_libc_$host_libc_type
|
||||||
|
|
||||||
|
# hacks for compiler/libc/os combinations
|
||||||
|
|
||||||
case $libc_type in
|
case $libc_type in
|
||||||
bionic)
|
bionic)
|
||||||
add_compat strtod.o strtod=avpriv_strtod
|
add_compat strtod.o strtod=avpriv_strtod
|
||||||
;;
|
;;
|
||||||
esac
|
glibc)
|
||||||
|
if enabled tms470; then
|
||||||
# hacks for compiler/libc/os combinations
|
|
||||||
|
|
||||||
if enabled_all tms470 libc_glibc; then
|
|
||||||
CPPFLAGS="-I${source_path}/compat/tms470 ${CPPFLAGS}"
|
CPPFLAGS="-I${source_path}/compat/tms470 ${CPPFLAGS}"
|
||||||
add_cppflags -D__USER_LABEL_PREFIX__=
|
add_cppflags -D__USER_LABEL_PREFIX__=
|
||||||
add_cppflags -D__builtin_memset=memset
|
add_cppflags -D__builtin_memset=memset
|
||||||
add_cppflags -D__gnuc_va_list=va_list -D_VA_LIST_DEFINED
|
add_cppflags -D__gnuc_va_list=va_list -D_VA_LIST_DEFINED
|
||||||
add_cflags -pds=48 # incompatible redefinition of macro
|
add_cflags -pds=48 # incompatible redefinition of macro
|
||||||
fi
|
elif enabled ccc; then
|
||||||
|
|
||||||
if enabled_all ccc libc_glibc; then
|
|
||||||
add_ldflags -Wl,-z,now # calls to libots crash without this
|
add_ldflags -Wl,-z,now # calls to libots crash without this
|
||||||
fi
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
check_compile_assert flt_lim "float.h limits.h" "DBL_MAX == (double)DBL_MAX" ||
|
check_compile_assert flt_lim "float.h limits.h" "DBL_MAX == (double)DBL_MAX" ||
|
||||||
add_cppflags '-I\$(SRC_PATH)/compat/float'
|
add_cppflags '-I\$(SRC_PATH)/compat/float'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user