[Ffmpeg-devel] [PATCH] Cygwin vhook, always static avformat

Diego Biurrun diego
Wed May 3 01:40:56 CEST 2006


On Wed, May 03, 2006 at 12:25:33AM +0200, V?ctor Paesa wrote:
> 
> >>> >Why do you want to install the shared libs in $(bindir)?
> >>> It's the Cygwin way, DLLs are together with EXEs in the same directory, 
> >>and
> >>> import libraries for DLLs  are in $(libdir).
> >>
> >>But is this necessary?  Will it work if the DLLs are in $(libdir)
> >>anyway?
> >LD_CONFIG_PATH, LD_RUN PATH are not honored, unfortunately DLLs use the 
> >same search path as executables, so to use $(libdir) I would need to set:
> >
> >export PATH="$PATH:$libdir"
> >
> >I am not sure if -rpath works, I will check.
> 
> -rpath does not work either, I am afraid that installing the DLLs together 
> with EXEs will be a neccessary evil.

Please try the attached patch, it's untested, but i'm confident it
should work.

Diego
-------------- next part --------------
--- configure	27 Apr 2006 02:38:41 -0000	1.266
+++ configure	2 May 2006 23:40:19 -0000
@@ -381,6 +381,7 @@
 extralibs=""
 cygwin="yes"
 EXESUF=".exe"
+libdir=$bindir
 ;;
 Linux)
 LDFLAGS="$LDFLAGS -rdynamic"



More information about the ffmpeg-devel mailing list