FFMPEG_EXTRA_LDFLAGS=""
if test "x$WANT_VAAPI" != "xno" -a "x$HAVE_VAAPI" = "xyes"; then
- FFMPEG_EXTRA_LDFLAGS+=' -lva'
- EXTRA_LIBS+=' -lva'
+ FFMPEG_EXTRA_LDFLAGS+=' -lva `pkg-config --libs libva`'
+ EXTRA_LIBS+=' -lva '
WANT_VAAPI="yes"
if test "x$HAVE_vaapi_x11" = "xyes"; then
FFMPEG_EXTRA_LDFLAGS+=' -lva-x11'
- EXTRA_LIBS+=' -lva-x11'
+ EXTRA_LIBS+=' -lva-x11 `pkg-config --libs x11`'
fi
if test "x$HAVE_vaapi_drm" = "xyes"; then
FFMPEG_EXTRA_LDFLAGS+=' -lva-drm'
LIBS += $(lib_a52dec) $(lib_djbfft) $(lib_libbthread)
ifeq ($(DYNAMIC_FONTS), 1)
-LIBS += -lX11
+LIBS += -lX11 `pkg-config --libs x11`
else
CFLAGS += -DBUILTIN_FONT_DATA
OBJS += $(OBJDIR)/xfont1.o
CFLAGS += -I$(TOPDIR)/libzmpeg3
ifeq ($(OBJDIR), i686)
-CFLAGS += -DX86_CPU
+CFLAGS += -DX86_CPU -march=i686 -mcpu=i686 -fomit-frame-pointer
NASMOBJ = \
$(OBJDIR)/bdist1_mmx.o \
$(OBJDIR)/bdist2_mmx.o \
#define mmx_si2r(op,imm,reg) \
__asm__ __volatile__ (#op " %0, %%" #reg \
: /* nothing */ \
- : "J" (imm) )
+ : "X" (imm) )
#define mmx_m2r(op,mem,reg) \
__asm__ __volatile__ (#op " %0, %%" #reg \