X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=configure;h=70b18b3b053112a29826e80cadacab233c68d0ba;hb=6ed3b504f984dc6cefde8d57a57726f9d30e5033;hp=7dcb50f3848c0789e852f242edfaf04b0b3dd5a7;hpb=f1c7c6aee8ddeda87a6b7a4d909a8e14ea3e1e24;p=ffmpeg diff --git a/configure b/configure index 7dcb50f3848..70b18b3b053 100755 --- a/configure +++ b/configure @@ -235,6 +235,7 @@ Advanced options (experts only): --enable-pic build position-independent code --malloc-prefix=PFX prefix malloc and related names with PFX --enable-sram allow use of on-chip SRAM + --disable-symver disable symbol versioning Developer options (useful when working on FFmpeg itself): --disable-debug disable debugging symbols @@ -276,7 +277,7 @@ die(){ cat < $TMPSH 2>> $logfile < /dev/null 2>&1 && enable texi2html || disable texi2html -if enabled network; then - check_type "sys/types.h sys/socket.h" socklen_t - check_type netdb.h "struct addrinfo" - check_type netinet/in.h "struct ipv6_mreq" -D_DARWIN_C_SOURCE - check_type netinet/in.h "struct sockaddr_in6" - check_type "sys/types.h sys/socket.h" "struct sockaddr_storage" - check_struct "sys/types.h sys/socket.h" "struct sockaddr" sa_len - # Prefer arpa/inet.h over winsock2 - if check_header arpa/inet.h ; then - check_func closesocket - elif check_header winsock2.h ; then - check_func_headers winsock2.h closesocket -lws2 && \ - network_extralibs="-lws2" || \ - { check_func_headers winsock2.h closesocket -lws2_32 && \ - network_extralibs="-lws2_32"; } - check_type ws2tcpip.h socklen_t - check_type ws2tcpip.h "struct addrinfo" - check_type ws2tcpip.h "struct ipv6_mreq" - check_type ws2tcpip.h "struct sockaddr_in6" - check_type ws2tcpip.h "struct sockaddr_storage" - check_struct winsock2.h "struct sockaddr" sa_len - else - disable network - fi -fi - check_header linux/videodev.h check_header linux/videodev2.h check_header sys/videoio.h @@ -2886,7 +2915,7 @@ enabled extra_warnings && check_cflags -Winline check_ldflags -Wl,--warn-common check_ldflags -Wl,--as-needed check_ldflags '-Wl,-rpath-link,\$(BUILD_ROOT)/libpostproc -Wl,-rpath-link,\$(BUILD_ROOT)/libswscale -Wl,-rpath-link,\$(BUILD_ROOT)/libavfilter -Wl,-rpath-link,\$(BUILD_ROOT)/libavdevice -Wl,-rpath-link,\$(BUILD_ROOT)/libavformat -Wl,-rpath-link,\$(BUILD_ROOT)/libavcodec -Wl,-rpath-link,\$(BUILD_ROOT)/libavcore -Wl,-rpath-link,\$(BUILD_ROOT)/libavutil' -check_ldflags -Wl,-Bsymbolic +test_ldflags -Wl,-Bsymbolic && append SHFLAGS -Wl,-Bsymbolic echo "X{};" > $TMPV if test_ldflags -Wl,--version-script,$TMPV; then @@ -2954,8 +2983,12 @@ elif enabled armcc; then # 2523: use of inline assembler is deprecated add_cflags -W${armcc_opt},--diag_suppress=2523 add_cflags -W${armcc_opt},--diag_suppress=1207 + add_cflags -W${armcc_opt},--diag_suppress=1293 # assignment in condition + add_cflags -W${armcc_opt},--diag_suppress=3343 # hardfp compat elif enabled tms470; then add_cflags -pds=824 -pds=837 +elif enabled pathscale; then + add_cflags -fstrict-overflow -OPT:wrap_around_unsafe_opt=OFF fi enabled_any $THREADS_LIST && enable threads @@ -3216,7 +3249,7 @@ get_version LIBPOSTPROC libpostproc/postprocess.h get_version LIBAVCODEC libavcodec/avcodec.h get_version LIBAVCORE libavcore/avcore.h get_version LIBAVDEVICE libavdevice/avdevice.h -get_version LIBAVFORMAT libavformat/avformat.h +get_version LIBAVFORMAT libavformat/version.h get_version LIBAVUTIL libavutil/avutil.h get_version LIBAVFILTER libavfilter/avfilter.h @@ -3230,7 +3263,6 @@ cat > $TMPH <> $TMPH - echo "#define av_always_inline" >> $TMPH + if enabled small; then + echo "#define av_always_inline inline" >> $TMPH + else + echo "#define av_always_inline av_unused" >> $TMPH + fi fi if enabled yasm; then