1
mirror of https://github.com/mpv-player/mpv synced 2024-11-14 22:48:35 +01:00

Add --extra-libs option to pass linker flags.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19552 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2006-08-26 20:53:37 +00:00
parent f5e2fac77b
commit 9927cb669d
2 changed files with 8 additions and 1 deletions

View File

@ -150,6 +150,7 @@ COMMON_LIBS = libmpcodecs/libmpcodecs.a \
$(ARCH_LIB) \ $(ARCH_LIB) \
$(MATH_LIB) \ $(MATH_LIB) \
$(LIBC_LIB) \ $(LIBC_LIB) \
$(EXTRALIBS) \
PARTS = libmpdemux \ PARTS = libmpdemux \
stream \ stream \

8
configure vendored
View File

@ -406,7 +406,8 @@ Hazardous options a.k.a. "DO NOT REPORT ANY BUGS!"
Use these options if autodetection fails (Options marked with (*) accept Use these options if autodetection fails (Options marked with (*) accept
multiple paths separated by ':'): multiple paths separated by ':'):
--with-extraincdir=DIR extra headers (png, mad, sdl, ...) in DIR (*) --with-extraincdir=DIR extra headers (png, mad, sdl, ...) in DIR (*)
--with-extralibdir=DIR extra library files (png, mad, sdl, ...) in DIR (*) --with-extralibdir=DIR extra linker search paths in DIR (*)
--extra-libs=FLAGS extra linker flags
--with-x11libdir=DIR X library files in DIR (*) --with-x11libdir=DIR X library files in DIR (*)
--with-mlibdir=DIR libmlib (mediaLib support) in DIR (Solaris only) --with-mlibdir=DIR libmlib (mediaLib support) in DIR (Solaris only)
--with-codecsdir=DIR Binary codec files in DIR --with-codecsdir=DIR Binary codec files in DIR
@ -501,6 +502,9 @@ for ac_option do
--with-extralibdir=*) --with-extralibdir=*)
_ld_extra=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'` _ld_extra=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'`
;; ;;
--extra-libs=*)
_extra_libs=`echo $ac_option | cut -d '=' -f 2`
;;
--enable-runtime-cpudetection) --enable-runtime-cpudetection)
_runtime_cpudetection=yes _runtime_cpudetection=yes
;; ;;
@ -1719,6 +1723,7 @@ for ac_option do
--disable-static*) ;; --disable-static*) ;;
--with-extraincdir=*) ;; --with-extraincdir=*) ;;
--with-extralibdir=*) ;; --with-extralibdir=*) ;;
--extra-libs=*) ;;
--enable-runtime-cpudetection) ;; --enable-runtime-cpudetection) ;;
--disable-runtime-cpudetection) ;; --disable-runtime-cpudetection) ;;
--enable-cross-compile) ;; --enable-cross-compile) ;;
@ -7301,6 +7306,7 @@ PNG = $_png
JPEG = $_jpeg JPEG = $_jpeg
GIF = $_gif GIF = $_gif
EXTRALIBS = $_extra_libs
EXTRA_LIB = $_ld_extra EXTRA_LIB = $_ld_extra
Z_LIB = $_ld_static $_ld_zlib Z_LIB = $_ld_static $_ld_zlib
HAVE_MLIB = $_mlib HAVE_MLIB = $_mlib