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 f73b06ba5c)
This commit is contained in:
Michel Alexandre Salim 2010-11-27 17:33:31 +01:00
parent 05504a3c90
commit e60dbac558

View file

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