$OpenBSD: patch-libavformat_Makefile,v 1.6 2004/04/18 00:36:22 jolan Exp $
--- libavformat/Makefile.orig	2003-09-28 10:26:40.000000000 -0500
+++ libavformat/Makefile	2004-02-24 21:12:13.000000000 -0600
@@ -32,7 +32,7 @@ OBJS+= avio.o aviobuf.o file.o 
 OBJS+= framehook.o 
 
 ifeq ($(CONFIG_VIDEO4LINUX),yes)
-OBJS+= grab.o
+OBJS+= grab_bsdbktr.o
 endif
 
 ifeq ($(CONFIG_DV1394),yes)
@@ -65,6 +65,7 @@ endif
 LIB= $(LIBPREF)avformat$(LIBSUF)
 ifeq ($(BUILD_SHARED),yes)
 SLIB= $(SLIBPREF)avformat$(SLIBSUF)
+CFLAGS += ${PIC} -DPIC
 endif
 
 SRCS := $(OBJS:.o=.c) $(PPOBJS:.o=.cpp)
