$OpenBSD: patch-bbmpeg_Makefile_in,v 1.2 2004/06/24 19:27:00 sturm Exp $
--- bbmpeg/Makefile.in.orig	2004-01-06 12:39:09.000000000 -0800
+++ bbmpeg/Makefile.in	2004-06-18 20:24:56.000000000 -0700
@@ -64,10 +64,10 @@ CAN_COMPILE_C_ALTIVEC_FALSE = @CAN_COMPI
 CAN_COMPILE_C_ALTIVEC_TRUE = @CAN_COMPILE_C_ALTIVEC_TRUE@
 CC = @CC@
 CCAS = @CCAS@
-CCASFLAGS = @CCASFLAGS@
+CCASFLAGS = -fPIC -DPIC @CCASFLAGS@
 CCDEPMODE = @CCDEPMODE@
 
-CFLAGS = -funroll-loops -ffast-math @CFLAGS@ $(MMX)
+CFLAGS = -fPIC -DPIC -funroll-loops -ffast-math @CFLAGS@ $(MMX)
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
 CXX = @CXX@
@@ -444,6 +444,7 @@ libbbmpeg.a: $(libbbmpeg_a_OBJECTS) $(li
 	-rm -f libbbmpeg.a
 	$(libbbmpeg_a_AR) libbbmpeg.a $(libbbmpeg_a_OBJECTS) $(libbbmpeg_a_LIBADD)
 	$(RANLIB) libbbmpeg.a
+	cp libbbmpeg.a libbbmpeg_pic.a
 
 mostlyclean-compile:
 	-rm -f *.$(OBJEXT) core *.core
@@ -514,7 +515,7 @@ distclean-compile:
 @am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
 
 .s.o:
-	$(CCASCOMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
+	$(ASM) -g $(ASMFLAGS) -o $@ $<
 
 .s.obj:
 	$(CCASCOMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`
@@ -802,7 +803,6 @@ uninstall-info: uninstall-info-recursive
 	uninstall-info-recursive uninstall-recursive
 
 
-%.o: %.s ;	$(ASM) -g $(ASMFLAGS) -o $@ $<
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
 .NOEXPORT:
