|
|
|
@ -730,6 +730,10 @@ add_ldflags(){ |
|
|
|
|
append LDFLAGS $($ldflags_filter "$@") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
add_stripflags(){ |
|
|
|
|
append STRIPFLAGS "$@" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
add_extralibs(){ |
|
|
|
|
prepend extralibs $($ldflags_filter "$@") |
|
|
|
|
} |
|
|
|
@ -892,6 +896,20 @@ check_ldflags(){ |
|
|
|
|
test_ldflags "$@" && add_ldflags "$@" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
test_stripflags(){ |
|
|
|
|
log test_stripflags "$@" |
|
|
|
|
# call check_cc to get a fresh TMPO |
|
|
|
|
check_cc <<EOF |
|
|
|
|
int main(void) { return 0; } |
|
|
|
|
EOF |
|
|
|
|
check_cmd $strip $STRIPFLAGS "$@" $TMPO |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
check_stripflags(){ |
|
|
|
|
log check_stripflags "$@" |
|
|
|
|
test_stripflags "$@" && add_stripflags "$@" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
check_header(){ |
|
|
|
|
log check_header "$@" |
|
|
|
|
header=$1 |
|
|
|
@ -4507,6 +4525,10 @@ check_ldflags -Wl,-rpath-link=libpostproc:libswresample:libswscale:libavfilter:l |
|
|
|
|
enabled rpath && add_ldflags -Wl,-rpath=$libdir |
|
|
|
|
test_ldflags -Wl,-Bsymbolic && append SHFLAGS -Wl,-Bsymbolic |
|
|
|
|
|
|
|
|
|
# add some strip flags |
|
|
|
|
# -wN '..@*' is more selective than -x, but not available everywhere. |
|
|
|
|
check_stripflags -wN \'..@*\' || check_stripflags -x || strip='true' |
|
|
|
|
|
|
|
|
|
enabled xmm_clobber_test && |
|
|
|
|
check_ldflags -Wl,--wrap,avcodec_open2 \ |
|
|
|
|
-Wl,--wrap,avcodec_decode_audio4 \ |
|
|
|
@ -4858,6 +4880,7 @@ LD_PATH=$LD_PATH |
|
|
|
|
DLLTOOL=$dlltool |
|
|
|
|
LDFLAGS=$LDFLAGS |
|
|
|
|
SHFLAGS=$(echo $($ldflags_filter $SHFLAGS)) |
|
|
|
|
STRIPFLAGS=$STRIPFLAGS |
|
|
|
|
YASMFLAGS=$YASMFLAGS |
|
|
|
|
BUILDSUF=$build_suffix |
|
|
|
|
PROGSSUF=$progs_suffix |
|
|
|
|