diff options
author | Måns Rullgård <mans@mansr.com> | 2010-01-16 04:49:02 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-01-16 04:49:02 +0000 |
commit | a482e61bd624c71e39c1a06367e303364b3ba153 (patch) | |
tree | bf44a006a8d66834106256afdf2af57c6aec413f /configure | |
parent | 2ed46eeab33d30cdfb5adf97dd7266931acde0ed (diff) | |
download | ffmpeg-a482e61bd624c71e39c1a06367e303364b3ba153.tar.gz |
Add symbol versioning for shared libraries
Based on patch by Reinhard Tartler <siretart tauware de>
Originally committed as revision 21236 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1561,6 +1561,7 @@ tmpfile TMPE $EXESUF tmpfile TMPH .h tmpfile TMPO .o tmpfile TMPS .S +tmpfile TMPV .ver tmpfile TMPSH .sh unset -f mktemp @@ -2568,6 +2569,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" |