[x264-devel] Build dll on MinGW32

Zuxy Meng zuxy.meng at gmail.com
Sat Mar 15 19:14:14 CET 2008


Hi,

2008/3/16, Loren Merritt <lorenm at u.washington.edu>:
> On Tue, 11 Mar 2008, Zuxy Meng wrote:
>
> > The attached patch enables x264 to build the DLL and import lib under
> > MinGW32 and install them properly. The naming convention adheres to
> > libtool.
>
> Does the patch apply to mingw and not cygwin? Should we even distinguish
> between the two? Currently configure treats them identically except for
> -mno-cygwin.

I've no idea how DLL works on cygwin.
>
> > + API=$(grep '#define X264_BUILD' < x264.h | cut -f 3 -d ' ' | cut -c 1)
>
> Why the extra cut? The version is 58, not 5.

Hmm I thought it's v5.8....
>
> > +ifeq ($(SYS),MINGW)
> > +       $(CC) -shared -o $@ $(OBJS) $(OBJASM) -Wl,--out-implib,$(IMPLIBNAME) -Wl,--enable-auto-image-base $(LDFLAGS)
> > +else
> >         $(CC) -shared -o $@ $(OBJS) $(OBJASM) -Wl,-soname,$(SONAME) $(LDFLAGS)
> > +endif
>
> Should go in configure. SOFLAGS or something.

OK
-- 
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: w32shared.diff
Url: http://mailman.videolan.org/pipermail/x264-devel/attachments/20080316/2a42d378/attachment.txt 


More information about the x264-devel mailing list