[x264-devel] Build dll on MinGW32
Loren Merritt
lorenm at u.washington.edu
Sat Mar 15 18:42:56 CET 2008
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.
> + API=$(grep '#define X264_BUILD' < x264.h | cut -f 3 -d ' ' | cut -c 1)
Why the extra cut? The version is 58, not 5.
> +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.
--Loren Merritt
More information about the x264-devel
mailing list