[Ffmpeg-devel] Re: Configure with msys/mingw

Gianluigi Tiesi mplayer
Fri Jul 28 01:54:31 CEST 2006

On Wed, Jul 26, 2006 at 04:59:21PM +0200, Christian Jacquemin wrote:
> Thank you Gianluigi for the details of your config.
> I have upgraded the bintutils/gcc/runtime from the tarballs
> on mplayer site, and checked the versions of gcc, make, sh
> and ld... but the same error was still produced
> by ld at the check_cc and check_ld step :
> gcc
> -Wl,--output-def,$(@:.dll=.def),--out-implib,lib$(SLIBNAME:$(SLIBSUF)=.dll.a)
> -o /tmp/ffmpeg-conf-13700-3384-12653 /tmp/ffmpeg-conf-18966-3384-28567.o -lm
> c:\mingw\bin\..\lib\gcc\mingw32\4.1.1\..\..\..\..\mingw32\bin\ld.exe: Can't open
> output def file $(@:.dll=.def)
> I have finally decided to remove the problematic
> argument --output-def,$(@:.dll=.def) from the configuration
> file
> diff -d -u configure configure_new
> --- configure   Wed Jul 26 12:35:10 2006
> +++ configure_new       Wed Jul 26 12:35:32 2006
> @@ -892,7 +892,7 @@
>      if test "$mingwce" = "yes"; then
>          protocols="no"
>      fi
> -
> FFLDFLAGS='-Wl,--output-def,$(@:.dll=.def),--out-implib,lib$(SLIBNAME:$(SLIBSUF)=.dll.a)'
> +    FFLDFLAGS='-Wl,--out-implib,lib$(SLIBNAME:$(SLIBSUF)=.dll.a)'
>      SLIBPREF=""
>      SLIBSUF=".dll"
>      EXESUF=".exe"
-Wl passes the param to the linker (ld) that in this case is same of my
environment, more likely the bash doesn't correctly expand the var,
but really I dunno how it should be expanded.
Anyway I don't see the reason to use it on each test_cc in configure,
if you are curious you can look at config.err output for each configure

I don't build often mingw ffmpeg, I use it withing mplayer so
configure scripts are differents, but this problem sound very strange to


Gianluigi Tiesi <sherpya at netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/

More information about the ffmpeg-devel mailing list