Add with_pygdb.

This commit is contained in:
Ralf Corsepius
2010-03-21 06:21:41 +00:00
parent 7234118388
commit 4196a53d12
2 changed files with 10 additions and 0 deletions

View File

@@ -24,6 +24,8 @@ BuildRequires: %{_host_rpmprefix}gcc
%bcond_with lto %bcond_with lto
%bcond_with pygdb
# versions of libraries, we conditionally bundle if necessary # versions of libraries, we conditionally bundle if necessary
%global mpc_version 0.8.1 %global mpc_version 0.8.1
%global mpfr_version 2.4.1 %global mpfr_version 2.4.1

View File

@@ -66,6 +66,13 @@
rmdir ${RPM_BUILD_ROOT}%{_prefix}/@tool_target@/include/bits rmdir ${RPM_BUILD_ROOT}%{_prefix}/@tool_target@/include/bits
fi fi
# gcc >= 4.5.0: installs weird libstdc++ python bindings.
%if ! %{with pygdb}
if test -d ${RPM_BUILD_ROOT}%{_datadir}/gcc-%{gcc_version}/python; then
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/gcc-%{gcc_version}/python/libstdcxx
fi
%endif
# Collect multilib subdirectories # Collect multilib subdirectories
multilibs=`build/gcc/xgcc -Bbuild/gcc/ --print-multi-lib | sed -e 's,;.*$,,'` multilibs=`build/gcc/xgcc -Bbuild/gcc/ --print-multi-lib | sed -e 's,;.*$,,'`
@@ -123,6 +130,7 @@
*jc1) ;; *jc1) ;;
*jvgenmain) ;; *jvgenmain) ;;
*/libgfortran*.*) echo "$i" >> build/files.gfortran ;; */libgfortran*.*) echo "$i" >> build/files.gfortran ;;
%{!?with_pygdb:*/libstdc++*gdb.py*) rm ${RPM_BUILD_ROOT}/$i ;;} # ignore for now
*/libstdc++.*) echo "$i" >> build/files.g++ ;; */libstdc++.*) echo "$i" >> build/files.g++ ;;
*/libsupc++.*) echo "$i" >> build/files.g++ ;; */libsupc++.*) echo "$i" >> build/files.g++ ;;
*) echo "$i" >> build/files.gcc ;; *) echo "$i" >> build/files.gcc ;;