1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

Fix configure with clang3.4

Submitted by:	dim
This commit is contained in:
Baptiste Daroussin 2014-02-11 23:01:43 +00:00
parent f14ccfe17b
commit b7e283c939
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=343831

View File

@ -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