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
4 SUFFIXES = .c .o .lo .asm
7 -NASMFLAGS=@NASMFLAGS@ $(CFLAGS)
10 noinst_LTLIBRARIES = lib_i386.la lib_nasm.la
13 $(NASM) $(NASMFLAGS) $< -o $@
16 - test -d .libs || mkdir .libs
17 - $(NASM) $(NASMFLAGS) $< -o .libs/$*.lo
18 - $(NASM) $(NASMFLAGS) $< -o $*.o
19 - mv -f .libs/$*.lo $*.lo
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
27 +# taken from flac sources --qboosh
29 +# libtool assumes that the compiler can handle the -fPIC flag
30 +# This isn't always true (for example, nasm can't handle it)
33 + if [ "$1" != "-fPIC" ]; then
34 + if [ "$1" != "-DPIC" ]; then
35 + command="$command $1"