mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
merged patches from Chris Csanady and John Steele Scott, better checking for altivec and ppc64 on ppc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user