]> git.pld-linux.org Git - packages/libx264.git/blob - libx264-nasm.patch
- added missing ppc file
[packages/libx264.git] / libx264-nasm.patch
1 --- libx264-0.1.2/common/i386/Makefile.am.orig  2004-12-17 13:27:36.000000000 +0100
2 +++ libx264-0.1.2/common/i386/Makefile.am       2005-10-11 22:33:13.052271512 +0200
3 @@ -3,7 +3,7 @@
4  SUFFIXES = .c .o .lo .asm
5  
6  NASM=@NASM@
7 -NASMFLAGS=@NASMFLAGS@ $(CFLAGS)
8 +NASMFLAGS=@NASMFLAGS@
9  
10  noinst_LTLIBRARIES = lib_i386.la lib_nasm.la
11  
12 @@ -19,8 +19,4 @@
13         $(NASM) $(NASMFLAGS) $< -o $@
14  
15  .asm.lo: $<
16 -       test -d .libs || mkdir .libs
17 -       $(NASM) $(NASMFLAGS) $< -o .libs/$*.lo
18 -       $(NASM) $(NASMFLAGS) $< -o $*.o
19 -       mv -f .libs/$*.lo $*.lo
20 -
21 +       $(LIBTOOL) --mode=compile --tag=NASM sh $(top_srcdir)/strip_fPIC.sh $(NASM) $(NASMFLAGS) $< -o $*.lo
22 --- libx264/strip_fPIC.sh.orig  Thu Jan  1 01:00:00 1970
23 +++ libx264/strip_fPIC.sh       Thu Feb 27 23:51:20 2003
24 @@ -0,0 +1,17 @@
25 +#!/bin/sh
26 +#
27 +# taken from flac sources  --qboosh
28 +#
29 +# libtool assumes that the compiler can handle the -fPIC flag
30 +# This isn't always true (for example, nasm can't handle it)
31 +command=""
32 +while [ $1 ]; do
33 +       if [ "$1" != "-fPIC" ]; then
34 +               if [ "$1" != "-DPIC" ]; then
35 +                       command="$command $1"
36 +               fi
37 +       fi
38 +       shift
39 +done
40 +echo $command
41 +exec $command
This page took 0.026064 seconds and 3 git commands to generate.