merged patches from Chris Csanady and John Steele Scott, better checking for altivec and ppc64 on ppc

This commit is contained in:
Josh Coalson
2005-01-21 01:53:02 +00:00
parent fd218cf3cf
commit 663c599b0a
3 changed files with 84 additions and 10 deletions

View File

@@ -29,10 +29,21 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
lib_LTLIBRARIES = libFLAC.la
DEBUGCFLAGS =
CPUCFLAGS =
if DEBUG
DEBUGCFLAGS = -DFLAC__OVERFLOW_DETECT
endif
CFLAGS = @CFLAGS@ $(DEBUGCFLAGS)
if FLaC__CPU_PPC
# The -force_cpusubtype_ALL is needed to insert a ppc64 instruction
# into cpu.c with an asm().
if FLaC__SYS_DARWIN
CPUCFLAGS= -faltivec -force_cpusubtype_ALL
else
CPUCFLAGS= -maltivec -mabi=altivec -force_cpusubtype_ALL
endif
endif
CFLAGS = @CFLAGS@ $(DEBUGCFLAGS) $(CPUCFLAGS)
if FLaC__NO_ASM
else