[x264-devel] [PATCH] Link to libgpac instead of libgpac_static when enable shared

Loren Merritt lorenm at u.washington.edu
Tue Apr 22 10:52:11 CEST 2008


On Tue, 22 Apr 2008, Zuxy Meng wrote:

> How about this?
>  x264$(EXE): $(OBJCLI) libx264.a
> -       $(CC) -o $@ $+ $(LDFLAGS)
> +       $(CC) -o $@ $(subst libx264.a, -lx264, $+) $(LDFLAGS)

Fails unless . is in your linking path. And if you fixed that it'd be 
nonterministic with make -j depending on whether the .so built first.

Put .so in the dependencies, then no change in compiler command is needed.

--Loren Merritt


More information about the x264-devel mailing list