summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2006-05-11 20:36:00 +0000
committerMåns Rullgård <mans@mansr.com>2006-05-11 20:36:00 +0000
commitbaa3a937815c8bcd47b84cd4a3b450705197b27a (patch)
tree27654b0c0f30e3475a9a457fde9c70763537a6fd /configure
parent8dcf48a8c368dff8a4bfdcd7db6aa581788a2954 (diff)
Create shared libraries using versioned filenames and add -rpath-link
to LDFLAGS so linker finds them when using --as-needed (which is default in some installations). Using --as-needed is generally a good thing, so add that explicitly as well. Originally committed as revision 5362 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index 4ff62c7f97..f2b8bacd7b 100755
--- a/configure
+++ b/configure
@@ -228,7 +228,7 @@ vhook="default"
dlfcn="no"
dlopen="no"
mpegaudio_hp="yes"
-SHFLAGS='-shared -Wl,-soname,$@.$(LIBMAJOR)'
+SHFLAGS='-shared -Wl,-soname,$@'
netserver="no"
need_inet_aton="no"
protocols="yes"
@@ -383,7 +383,7 @@ cygwin="yes"
EXESUF=".exe"
;;
Linux)
-LDFLAGS="$LDFLAGS -rdynamic"
+LDFLAGS="$LDFLAGS -rdynamic -Wl,--as-needed -Wl,-rpath-link,\$(BUILD_ROOT)/libavcodec -Wl,-rpath-link,\$(BUILD_ROOT)/libavformat -Wl,-rpath-link,\$(BUILD_ROOT)/libavutil"
;;
IRIX*)
ranlib="echo ignoring ranlib"