configure: fix configure error with clang
authorSeokyeon Hwang <syeon.hwang@samsung.com>
Fri, 2 Dec 2016 05:46:48 +0000 (14:46 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Fri, 2 Dec 2016 08:35:28 +0000 (17:35 +0900)
Change-Id: I211b3c97e26bc43c3b391f2c930933abcf40c2fd
Signed-off-by: Seokyeon Hwang <syeon.hwang@samsung.com>
configure

index 7021149..47adcf7 100755 (executable)
--- a/configure
+++ b/configure
@@ -1882,6 +1882,7 @@ fi
 
 if test "$static" = "no" ; then
   cat > $TMPC << EOF
+#ifndef __clang__
 #pragma GCC push_options
 #pragma GCC target("avx2")
 #include <cpuid.h>
@@ -1893,6 +1894,7 @@ static int bar(void *a) {
 static void *bar_ifunc(void) {return (void*) bar;}
 int foo(void *a) __attribute__((ifunc("bar_ifunc")));
 int main(int argc, char *argv[]) { return foo(argv[0]);}
+#endif //__clang__
 EOF
   if compile_object "" ; then
       if has readelf; then