Index: configure
--- configure.orig	2009-04-30 22:45:10 +0200
+++ configure	2009-05-01 11:25:24 +0200
@@ -244,7 +244,7 @@
       ASFLAGS="$ASFLAGS -f elf"
     fi
     ;;
-  x86_64)
+  x86_64 | amd64 )
     ARCH="X86_64"
     AS="yasm"
     if [ "$SYS" = MACOSX ];then
@@ -399,8 +399,8 @@
 fi
 
 if [ "$debug" != "yes" -a "$gprof" != "yes" ]; then
-    CFLAGS="$CFLAGS -s -fomit-frame-pointer"
-    LDFLAGS="$LDFLAGS -s"
+    CFLAGS="$CFLAGS -fomit-frame-pointer"
+    LDFLAGS="$LDFLAGS"
 fi
 
 if [ "$debug" = "yes" ]; then
Index: encoder/analyse.c
--- encoder/analyse.c.orig	2009-04-30 22:45:10 +0200
+++ encoder/analyse.c	2009-05-01 11:23:58 +0200
@@ -37,6 +37,10 @@
 #include "analyse.h"
 #include "rdo.c"
 
+#if defined(__FreeBSD__)
+#define log2f(x) (logf((x)) / logf(2))
+#endif
+
 typedef struct
 {
     /* 16x16 */
