Move VIS CFLAGS settings into configure.
authorDiego Biurrun <diego@biurrun.de>
Sun, 23 Sep 2007 21:06:08 +0000 (21:06 +0000)
committerDiego Biurrun <diego@biurrun.de>
Sun, 23 Sep 2007 21:06:08 +0000 (21:06 +0000)
Originally committed as revision 10555 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure
libavcodec/Makefile

index 2fe87da..86e4918 100755 (executable)
--- a/configure
+++ b/configure
@@ -1500,6 +1500,8 @@ int main(void) {
 }
 EOF
 
+enabled vis && add_cflags "-mcpu=ultrasparc -mtune=ultrasparc"
+
 # ---
 # big/little-endian test
 check_cc <<EOF || die "endian test failed"
index 20e01ca..505b1be 100644 (file)
@@ -381,8 +381,6 @@ ASM_OBJS-$(HAVE_ARMV6)                 += armv4l/simple_idct_armv6.o \
 OBJS-$(HAVE_VIS)                       += sparc/dsputil_vis.o \
                                           sparc/simple_idct_vis.o \
 
-sparc/dsputil_vis.o sparc/simple_idct_vis.o: CFLAGS += -mcpu=ultrasparc -mtune=ultrasparc
-
 OBJS-$(HAVE_MLIB)                      += mlib/dsputil_mlib.o \
 
 OBJS-$(ARCH_ALPHA)                     += alpha/dsputil_alpha.o     \