From e60dbac5582dcef8ab717374b3fb2193cdd52fe8 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Nov 27 2010 16:38:36 +0000 Subject: handle cases where gcc/c++ use symlink for header directories (e.g. F-13's update from 4.4.4->4.4.5 keeps headers in 4.4.4 but has a 4.4.5 symlink) (cherry picked from commit f73b06ba5c89db5fbe65507d751b0cc4ee39b9ee) --- diff --git a/llvm.spec b/llvm.spec index 0f70e0c..a023bfd 100644 --- a/llvm.spec +++ b/llvm.spec @@ -222,8 +222,9 @@ popd --enable-debug-runtime \ --enable-jit \ --enable-shared \ - --with-c-include-dirs=%{_includedir}:$(echo %{_prefix}/lib/gcc/*/*/include) \ - --with-cxx-include-root=$(echo %{_includedir}/c++/*) \ + --with-c-include-dirs=%{_includedir}:$(find %{_prefix}/lib/gcc/*/* \ + -maxdepth 0 -type d)/include \ + --with-cxx-include-root=$(find %{_includedir}/c++/* -maxdepth 0 -type d) \ --with-cxx-include-arch=%{_arch}-%{_vendor}-%{_os} # FIXME file this