forked from pool/gcc15
- Take patches inherited from GCC 14. * gcc-add-defaultsspec.diff, add the ability to provide a specs file that is read by default * tls-no-direct.diff, avoid direct %fs references on x86 to not slow down Xen * gcc43-no-unwind-tables.diff, do not produce unwind tables for CRT files * gcc41-ppc32-retaddr.patch, fix expansion of __builtin_return_addr for ppc, just a testcase * gcc44-textdomain.patch, make translation files version specific and adjust textdomain to find them * gcc44-rename-info-files.patch, fix cross-references in info files when renaming them to be version specific * gcc48-libstdc++-api-reference.patch, fix link in the installed libstdc++ html documentation * gcc7-remove-Wexpansion-to-defined-from-Wextra.patch, removes new warning from -Wextra * gcc7-avoid-fixinc-error.diff * gcc9-reproducible-builds-buildid-for-checksum.patch * gcc9-reproducible-builds.patch * gcc11-gdwarf-4-default.patch, default to -gdwarf-4 on old products OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc15?expand=0&rev=1
39 lines
850 B
Bash
39 lines
850 B
Bash
#!/bin/bash
|
|
# Copyright (c) 2003,2005 SUSE Linux Products GmbH, Germany. All rights reserved.
|
|
#
|
|
# Authors: Thorsten Kukuk <kukuk@suse.de>
|
|
#
|
|
# this script use the following variable(s):
|
|
#
|
|
# - $BUILD_BASENAME
|
|
#
|
|
|
|
case $BUILD_BASENAME in
|
|
*ppc*)
|
|
# Our biarch 32-bit compiler needs to be build on a 64-bit machine,
|
|
# otherwise some configure checks fail.
|
|
# Note that we cannot use uname here since powerpc32 was invoked
|
|
# already.
|
|
grep 'series64\|ppc64' /proc/version > /dev/null
|
|
if [ $? -ne 0 ] ; then
|
|
echo "build does not work on `hostname` for gcc"
|
|
exit 1
|
|
fi
|
|
;;
|
|
*x86_64*)
|
|
#if [ `ulimit -v` -le 740000 ] ; then
|
|
# echo "build does not work on ("`hostname`" for gcc)"
|
|
# exit 1
|
|
#fi
|
|
if [ `getconf _NPROCESSORS_CONF` -lt 2 ] ; then
|
|
echo "build does not work on `hostname` for gcc"
|
|
exit 1
|
|
fi
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
exit 0
|
|
|