diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2013-11-10 09:02:51 +0100 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2013-11-23 09:57:38 +0100 |
commit | 97a0bad87c8d05a3b428e33289efdb18757c47ce (patch) | |
tree | 102faaeac4150c7bc709b0312a4e36d4bdab8015 /configure | |
parent | ffe31c654d0e7218ca36fb7884bac35736e232bb (diff) | |
download | ffmpeg-97a0bad87c8d05a3b428e33289efdb18757c47ce.tar.gz |
Add --enable-rpath option to add -Wl,-rpath to pkg-config files.
This allows installing into e.g. /usr/lib/ffmpeg and binaries linked
against ffmpeg will pick these .so file while binaries linked against
some fork or different version will pick the libraries in /usr/lib.
There will be still some issues for binaries that (indirectly) end up
depending on multiple variants, but for the simpler cases it should allow
different applications to use different (compatible) variants that
are installed at the same time.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -87,6 +87,8 @@ Standard options: --shlibdir=DIR install shared libs in DIR [PREFIX/lib] --incdir=DIR install includes in DIR [PREFIX/include] --mandir=DIR install man page in DIR [PREFIX/share/man] + --enable-rpath use rpath to allow installing libraries in paths + not part of the dynamic linker search path Licensing options: --enable-gpl allow use of GPL code, the resulting libs @@ -1612,6 +1614,7 @@ CMDLINE_SELECT=" logging lto optimizations + rpath stripping " @@ -4468,6 +4471,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 test_ldflags -Wl,-Bsymbolic && append SHFLAGS -Wl,-Bsymbolic enabled xmm_clobber_test && @@ -4980,7 +4984,7 @@ Version: $version Requires: $(enabled shared || echo $requires) Requires.private: $(enabled shared && echo $requires) Conflicts: -Libs: -L\${libdir} -l${shortname} $(enabled shared || echo $libs) +Libs: -L\${libdir} $(enabled rpath && echo "-Wl,-rpath,\${libdir}") -l${shortname} $(enabled shared || echo $libs) Libs.private: $(enabled shared && echo $libs) Cflags: -I\${includedir} EOF |