]> granicus.if.org Git - libx264/commitdiff
Fix Darwin speed regression
authorAlexander Strange <astrange@ithinksw.com>
Wed, 22 Oct 2008 22:00:43 +0000 (15:00 -0700)
committerFiona Glaser <fiona@x264.com>
Wed, 22 Oct 2008 22:00:43 +0000 (15:00 -0700)
configure

index fa53bf2b750ab01ab6e20164d62fb48d37fc1bab..6c5f9491400e941a4c4395a1f001b180efbd5543 100755 (executable)
--- a/configure
+++ b/configure
@@ -184,6 +184,9 @@ case $host_os in
     SYS="MACOSX"
     CFLAGS="$CFLAGS -falign-loops=16"
     LDFLAGS="$LDFLAGS -lm -lmx"
+    if [ "$pic" = "no" ]; then
+        CFLAGS="$CFLAGS -mdynamic-no-pic"
+    fi
     ;;
   freebsd*)
     SYS="FREEBSD"