Fixed altivec code compilation.

Unfortunatly, avcodec plugin don't build yet, llint and lrint symbols are missing.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30219 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin
2009-04-17 02:10:51 +00:00
parent 5227a704f6
commit 2ee8423101
3 changed files with 7 additions and 6 deletions
@@ -39,7 +39,7 @@
#define HAVE_PTHREADS 0
#define HAVE_W32THREADS 0
#define HAVE_ALSA_ASOUNDLIB_H 0
#define HAVE_ALTIVEC_H 0
// #define HAVE_ALTIVEC_H 0
#define HAVE_ARPA_INET_H 0
#define HAVE_BSWAP 1
#define HAVE_CLOSESOCKET 0
@@ -16,14 +16,14 @@ if $(HAIKU_GCC_VERSION[1]) >= 3 {
}
# Enable altivec support
SubDirCcFlags -faltivec -maltivec -mabi=altivec ;
SubDirCcFlags -maltivec -mabi=altivec ;
local defines ;
defines = HAVE_AV_CONFIG_H=1 ;
defines += ARCH_X86=0 ARCH_X86_32=0 ARCH_PPC=1 ARCH_SPARC=0 ;
defines += HAVE_AMD3DNOW=0 HAVE_AMD3DNOWEXT=0 ;
defines += HAVE_MMX=0 HAVE_MMX2=0 HAVE_SSE=0 HAVE_SSE3=0 ;
defines += HAVE_ALTIVEC=1 HAVE_ALTIVEC_H=0 ;
defines += HAVE_ALTIVEC=1 HAVE_ALTIVEC_H=1 ;
defines += HAVE_VIS=0 ;
defines = [ FDefines $(defines) ] ;
@@ -19,20 +19,21 @@ if $(TARGET_ARCH) = x86 {
defines += ARCH_X86=1 ARCH_X86_32=1 ARCH_PPC=0 ARCH_SPARC=0 ;
defines += HAVE_AMD3DNOW=0 HAVE_AMD3DNOWEXT=0 ;
defines += HAVE_MMX=1 HAVE_MMX2=1 HAVE_SSE=0 HAVE_SSE3=1 ;
defines += HAVE_ALTIVEC=0 ;
defines += HAVE_ALTIVEC=0 HAVE_ALTIVEC_H=0 ;
defines += HAVE_VIS=0 ;
} else if $(TARGET_ARCH) = ppc {
defines += ARCH_X86=0 ARCH_X86_32=0 ARCH_PPC=1 ARCH_SPARC=0 ;
defines += HAVE_AMD3DNOW=0 HAVE_AMD3DNOWEXT=0 ;
defines += HAVE_MMX=0 HAVE_MMX2=0 HAVE_SSE=0 HAVE_SSE3=0 ;
defines += HAVE_ALTIVEC=1 ;
defines += HAVE_ALTIVEC=1 HAVE_ALTIVEC_H=1 ;
defines += HAVE_VIS=0 ;
arch_sources = yuv2rgb_altivec.c ;
SubDirCcFlags -maltivec -mabi=altivec ;
} else if $(TARGET_ARCH) = sparc {
defines += ARCH_X86=0 ARCH_X86_32=0 ARCH_PPC=0 ARCH_SPARC=1 ;
defines += HAVE_AMD3DNOW=0 HAVE_AMD3DNOWEXT=0 ;
defines += HAVE_MMX=0 HAVE_MMX2=0 HAVE_SSE=0 HAVE_SSE3=0 ;
defines += HAVE_ALTIVEC=0 ;
defines += HAVE_ALTIVEC=0 HAVE_ALTIVEC_H=0 ;
defines += HAVE_VIS=1 ;
arch_sources = yuv2rgb_vis.c ;
}