From: Eric Petit Date: Mon, 11 Apr 2005 20:52:31 +0000 (+0000) Subject: configure: ooops, restored -g X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=b7c3b444753d5ddce3b87249c96a207c85301075;p=x264.git configure: ooops, restored -g ratecontrol.c: OS X has exp2f in -lmx checkasm: quick compile fix git-svn-id: svn://svn.videolan.org/x264/trunk@194 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/Makefile b/Makefile index 09be4f20..b4681fe4 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,7 @@ libx264.a: $(OBJS) $(OBJASM) x264: libx264.a x264.o $(CC) -o $@ x264.o libx264.a $(LDFLAGS) -checkasm: testing/checkasm.c libx264.a +checkasm: testing/checkasm.o libx264.a $(CC) -o $@ $< libx264.a $(LDFLAGS) %.o: %.asm diff --git a/configure b/configure index 23535f00..c15bdd5f 100755 --- a/configure +++ b/configure @@ -1,7 +1,7 @@ #! /bin/sh CC="gcc" -CFLAGS="-Wall -I. -O4 -funroll-loops -D__X264__" +CFLAGS="-g -Wall -I. -O4 -funroll-loops -D__X264__" LDFLAGS="" AS="nasm" diff --git a/encoder/ratecontrol.c b/encoder/ratecontrol.c index d4525491..18f243cf 100644 --- a/encoder/ratecontrol.c +++ b/encoder/ratecontrol.c @@ -37,9 +37,6 @@ #include "common/macroblock.h" #include "ratecontrol.h" -#ifdef SYS_MACOSX -#define exp2f(x) ( (float) exp2( (x) ) ) -#endif #if defined(SYS_FREEBSD) || defined(SYS_BEOS) #define exp2f(x) powf( 2, (x) ) #endif diff --git a/testing/checkasm.c b/testing/checkasm.c index 0d83c8e6..641d82b9 100644 --- a/testing/checkasm.c +++ b/testing/checkasm.c @@ -239,6 +239,7 @@ static int check_dct() static int check_mc() { +#if 0 x264_mc_function_t mc_c[2] = {0}; x264_mc_function_t mc_asm[2] = {0}; uint8_t *src = &buf1[2*32+2]; @@ -302,6 +303,9 @@ static int check_mc() fprintf( stderr, " - mc chroma : [FAILED]\n" ); } return ret; +#else + return 0; +#endif } int main()