summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorReinhard Tartler <siretart@tauware.de>2010-06-15 12:29:19 +0000
committerReinhard Tartler <siretart@tauware.de>2010-06-15 12:29:19 +0000
commit03b47bb8d7364d77a205c6aa2abadfbc6643c702 (patch)
tree8042461a9d1e237dd3abd972abaf84f517aa3f5e /configure
parent05b4e4fe49af2db8e0308e7b451830e48be9209c (diff)
add symver hacks for gnu linkers
this patch restores binary compatibility for the av_*_packet symbols that have been moved from libavformat to libavcodec. This patch works for gnu toolchains only; support for ARM RCVT will be handed in for a later point release as soon as the patch is ready and approved by the ARM maintainer(s). Originally committed as revision 23610 to svn://svn.ffmpeg.org/ffmpeg/branches/0.6
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure b/configure
index 783e59d62d..fba5a5312e 100755
--- a/configure
+++ b/configure
@@ -1086,6 +1086,7 @@ HAVE_LIST="
struct_sockaddr_in6
struct_sockaddr_sa_len
struct_sockaddr_storage
+ gnu_symbol_versioning
sys_mman_h
sys_resource_h
sys_select_h
@@ -2733,7 +2734,12 @@ check_ldflags -Wl,-Bsymbolic
echo "X{};" > $TMPV
test_ldflags -Wl,--version-script,$TMPV &&
- append SHFLAGS '-Wl,--version-script,\$(SUBDIR)lib\$(NAME).ver'
+ append SHFLAGS '-Wl,--version-script,\$(SUBDIR)lib\$(NAME).ver' &&
+ check_cc <<EOF && enable gnu_symbol_versioning
+int ff_foo();
+int ff_foo() {}
+__asm__(".symver foo,av_foo@SOME_TAG");
+EOF
if enabled small; then
add_cflags $size_cflags