aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-02-12 07:01:43 +0800
committerbapt <bapt@FreeBSD.org>2014-02-12 07:01:43 +0800
commit22d9674daa2c9b9ee63b81844c222e62d34da987 (patch)
tree28274b80f7324c500afd7fde83235c23da793168
parent2ae419a82002dfd2909b89f3237cd063f1c49555 (diff)
downloadfreebsd-ports-gnome-22d9674daa2c9b9ee63b81844c222e62d34da987.tar.gz
freebsd-ports-gnome-22d9674daa2c9b9ee63b81844c222e62d34da987.tar.zst
freebsd-ports-gnome-22d9674daa2c9b9ee63b81844c222e62d34da987.zip
Fix configure with clang3.4
Submitted by: dim
-rw-r--r--multimedia/libtheora/files/patch-configure15
1 files changed, 15 insertions, 0 deletions
diff --git a/multimedia/libtheora/files/patch-configure b/multimedia/libtheora/files/patch-configure
new file mode 100644
index 000000000000..229295fb60c4
--- /dev/null
+++ b/multimedia/libtheora/files/patch-configure
@@ -0,0 +1,15 @@
+--- configure.orig 2014-02-11 10:04:07.000000000 +0100
++++ configure 2014-02-11 21:06:31.000000000 +0100
+@@ -11863,7 +11863,11 @@
+ case $host in
+ *)
+ DEBUG="-g -Wall -Wno-parentheses -DDEBUG -D__NO_MATH_INLINES"
+- CFLAGS="-Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops"
++ if $CC -v 2>&1 | grep clang > /dev/null; then
++ CFLAGS="-Wall -Wno-parentheses -O3 -fomit-frame-pointer -finline-functions -funroll-loops"
++ else
++ CFLAGS="-Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops"
++ fi
+ PROFILE="-Wall -Wno-parentheses -pg -g -O3 -fno-inline-functions -DDEBUG";;
+ esac
+ fi