|
|
|
@@ -566,13 +566,18 @@ int x; |
|
|
|
EOF |
|
|
|
} |
|
|
|
|
|
|
|
check_ldflags(){ |
|
|
|
log check_ldflags "$@" |
|
|
|
check_ld "$@" <<EOF && add_ldflags "$@" |
|
|
|
test_ldflags(){ |
|
|
|
log test_ldflags "$@" |
|
|
|
check_ld "$@" <<EOF |
|
|
|
int main(void){ return 0; } |
|
|
|
EOF |
|
|
|
} |
|
|
|
|
|
|
|
check_ldflags(){ |
|
|
|
log check_ldflags "$@" |
|
|
|
test_ldflags "$@" && add_ldflags "$@" |
|
|
|
} |
|
|
|
|
|
|
|
check_header(){ |
|
|
|
log check_header "$@" |
|
|
|
header=$1 |
|
|
|
@@ -1356,6 +1361,7 @@ TMPE="${TMPDIR}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}${EXESUF}" |
|
|
|
TMPH="${TMPDIR}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.h" |
|
|
|
TMPO="${TMPDIR}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.o" |
|
|
|
TMPS="${TMPDIR}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.S" |
|
|
|
TMPV="${TMPDIR}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.ver" |
|
|
|
TMPSH="${TMPDIR}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.sh" |
|
|
|
|
|
|
|
# make sure we can execute files in $TMPDIR |
|
|
|
@@ -2160,6 +2166,10 @@ 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)/libavutil' |
|
|
|
check_ldflags -Wl,-Bsymbolic |
|
|
|
|
|
|
|
echo "X{};" > $TMPV |
|
|
|
test_ldflags -Wl,--version-script,$TMPV && |
|
|
|
append SHFLAGS '-Wl,--version-script,\$(SUBDIR)lib\$(NAME).ver' |
|
|
|
|
|
|
|
if enabled small; then |
|
|
|
check_cflags -Os # not all compilers support -Os |
|
|
|
optimizations="small" |
|
|
|
|