@ -4831,17 +4831,25 @@ enabled xmm_clobber_test &&
-Wl,--wrap,sws_scale ||
-Wl,--wrap,sws_scale ||
disable xmm_clobber_test
disable xmm_clobber_test
echo "X { local: *; };" > $TMPV
check_ld <<EOF && enable proper_dce
if test_ldflags -Wl,${version_script},$TMPV; then
extern const int array[512];
append SHFLAGS '-Wl,${version_script},\$(SUBDIR)lib\$(NAME).ver'
static inline int func(void) { return array[0]; }
check_cc <<EOF && enable symver_asm_label
int main(void) { return 0; }
EOF
if enabled proper_dce; then
echo "X { local: *; };" > $TMPV
if test_ldflags -Wl,${version_script},$TMPV; then
append SHFLAGS '-Wl,${version_script},\$(SUBDIR)lib\$(NAME).ver'
check_cc <<EOF && enable symver_asm_label
void ff_foo(void) __asm__ ("av_foo@VERSION");
void ff_foo(void) __asm__ ("av_foo@VERSION");
void ff_foo(void) { ${inline_asm+__asm__($quotes);} }
void ff_foo(void) { ${inline_asm+__asm__($quotes);} }
EOF
EOF
check_cc <<EOF && enable symver_gnu_asm
check_cc <<EOF && enable symver_gnu_asm
__asm__(".symver ff_foo,av_foo@VERSION");
__asm__(".symver ff_foo,av_foo@VERSION");
void ff_foo(void) {}
void ff_foo(void) {}
EOF
EOF
fi
fi
fi
if [ -z "$optflags" ]; then
if [ -z "$optflags" ]; then