From b7e283c9399b30d71015e6472af145ff2fdc24fe Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Tue, 11 Feb 2014 23:01:43 +0000 Subject: Fix configure with clang3.4 Submitted by: dim --- multimedia/libtheora/files/patch-configure | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 multimedia/libtheora/files/patch-configure (limited to 'multimedia/libtheora') 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 -- cgit v1.2.3