aports/main/ffmpeg2.8/configure-dlvsym.patch
2016-03-31 12:48:15 +00:00

29 lines
816 B
Diff

--- ./configure.orig
+++ ./configure
@@ -1680,6 +1680,7 @@
CoTaskMemFree
CryptGenRandom
dlopen
+ dlvsym
fcntl
flt_lim
fork
@@ -4997,14 +4998,15 @@
-Wl,--wrap,sws_scale ||
disable xmm_clobber_test
+check_func dlvsym -lld
echo "X{};" > $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
+ enabled dlvsym && check_cc <<EOF && enable symver_asm_label
void ff_foo(void) __asm__ ("av_foo@VERSION");
void ff_foo(void) { ${inline_asm+__asm__($quotes);} }
EOF
- check_cc <<EOF && enable symver_gnu_asm
+ enabled dlvsym && check_cc <<EOF && enable symver_gnu_asm
__asm__(".symver ff_foo,av_foo@VERSION");
void ff_foo(void) {}
EOF