Commit ea3a2834 authored by diego's avatar diego

Fix --extra-ldflags when cross-compiling for MinGW.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5818 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 95c0dd90
......@@ -709,7 +709,7 @@ for opt do
;;
--extra-cflags=*) CFLAGS="$CFLAGS $optval"
;;
--extra-ldflags=*) FFLDFLAGS="$FFLDFLAGS $optval"
--extra-ldflags=*) EXTRALDFLAGS="$optval"
;;
--extra-libs=*) extralibs="$optval"
;;
......@@ -893,7 +893,6 @@ EOF
if test "$mingwce" = "yes"; then
protocols="no"
fi
#FIXME: This ignores --extra-ldflags.
FFLDFLAGS='-Wl,--output-def,$(@:.dll=.def),--out-implib,lib$(SLIBNAME:$(SLIBSUF)=.dll.a)'
SLIBPREF=""
SLIBSUF=".dll"
......@@ -902,8 +901,8 @@ EOF
if test "$force_libdir" != yes; then bindir="$PREFIX"; fi
fi
# Combine FFLDFLAGS and the LDFLAGS environment variable
LDFLAGS="$FFLDFLAGS $LDFLAGS"
# Combine FFLDFLAGS, EXTRALDFLAGS and the LDFLAGS environment variable.
LDFLAGS="$FFLDFLAGS $EXTRALDFLAGS $LDFLAGS"
test -n "$cross_prefix" && cross_compile=yes
cc="${cross_prefix}${cc}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment