changeset 31831:2cbafa9f6758

Suppress unsupported compiler options when building with clang on Darwin/PPC. patch by Rowan James, rowanj@phere.net
author diego
date Tue, 03 Aug 2010 11:46:55 +0000
parents 96fd00615ea4
children dc727e19c9b6
files configure
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue Aug 03 11:40:01 2010 +0000
+++ b/configure	Tue Aug 03 11:46:55 2010 +0000
@@ -1526,7 +1526,10 @@
 fi
 
 if darwin; then
-  extra_cflags="-mdynamic-no-pic -falign-loops=16 -shared-libgcc $extra_cflags"
+  extra_cflags="-mdynamic-no-pic $extra_cflags"
+  if test "$(basename $_cc)" != "clang" ; then
+    extra_cflags="-falign-loops=16 -shared-libgcc $extra_cflags"
+  fi
   _timer=timer-darwin.c
 fi