configure: Fix ld flags when rpath is enabled.
authorYuDenzel <yudenzel@outlook.com>
Wed, 23 Apr 2014 05:06:37 +0000 (13:06 +0800)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 24 Apr 2014 01:03:45 +0000 (03:03 +0200)
Provide correct rpath flags to ld when --enable-rpath is provided.

configure

index ddd0eeb..413cf9a 100755 (executable)
--- a/configure
+++ b/configure
@@ -4823,7 +4823,7 @@ check_disable_warning -Wno-pointer-sign
 # add some linker flags
 check_ldflags -Wl,--warn-common
 check_ldflags -Wl,-rpath-link=libpostproc:libswresample:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil:libavresample
-enabled rpath && add_ldflags -Wl,-rpath=$libdir
+enabled rpath && add_ldflags -Wl,-rpath,$libdir
 test_ldflags -Wl,-Bsymbolic && append SHFLAGS -Wl,-Bsymbolic
 
 # add some strip flags