]> git.pld-linux.org Git - packages/libx264.git/commitdiff
- don't pass invalid flags to nasm
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 11 Oct 2005 21:09:52 +0000 (21:09 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    libx264-nasm.patch -> 1.1

libx264-nasm.patch [new file with mode: 0644]

diff --git a/libx264-nasm.patch b/libx264-nasm.patch
new file mode 100644 (file)
index 0000000..5b3bfdb
--- /dev/null
@@ -0,0 +1,41 @@
+--- libx264-0.1.2/common/i386/Makefile.am.orig 2004-12-17 13:27:36.000000000 +0100
++++ libx264-0.1.2/common/i386/Makefile.am      2005-10-11 22:33:13.052271512 +0200
+@@ -3,7 +3,7 @@
+ SUFFIXES = .c .o .lo .asm
+ NASM=@NASM@
+-NASMFLAGS=@NASMFLAGS@ $(CFLAGS)
++NASMFLAGS=@NASMFLAGS@
+ noinst_LTLIBRARIES = lib_i386.la lib_nasm.la
+@@ -19,8 +19,4 @@
+       $(NASM) $(NASMFLAGS) $< -o $@
+ .asm.lo: $<
+-      test -d .libs || mkdir .libs
+-      $(NASM) $(NASMFLAGS) $< -o .libs/$*.lo
+-      $(NASM) $(NASMFLAGS) $< -o $*.o
+-      mv -f .libs/$*.lo $*.lo
+-
++      $(LIBTOOL) --mode=compile --tag=NASM sh $(top_srcdir)/strip_fPIC.sh $(NASM) $(NASMFLAGS) $< -o $*.lo
+--- libx264/strip_fPIC.sh.orig Thu Jan  1 01:00:00 1970
++++ libx264/strip_fPIC.sh      Thu Feb 27 23:51:20 2003
+@@ -0,0 +1,17 @@
++#!/bin/sh
++#
++# taken from flac sources  --qboosh
++#
++# libtool assumes that the compiler can handle the -fPIC flag
++# This isn't always true (for example, nasm can't handle it)
++command=""
++while [ $1 ]; do
++      if [ "$1" != "-fPIC" ]; then
++              if [ "$1" != "-DPIC" ]; then
++                      command="$command $1"
++              fi
++      fi
++      shift
++done
++echo $command
++exec $command
This page took 1.657123 seconds and 4 git commands to generate.