diff options
author | Hesham ALMatary <heshamelmatary@gmail.com> | 2015-05-04 12:44:52 +0100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2015-05-06 16:20:09 +1000 |
commit | d758ab9adc741d313aaa118d6deeac62c553ce85 (patch) | |
tree | 21ac8312b2392ecafd4790faa7221b0716c16741 /source-builder/config/gcc-common-1.cfg | |
parent | rtems4.11: Update newlib to the 20150423 snapshot. (diff) | |
download | rtems-source-builder-d758ab9adc741d313aaa118d6deeac62c553ce85.tar.bz2 |
Modify GNU's common backend configuration files to build from external sources
Diffstat (limited to 'source-builder/config/gcc-common-1.cfg')
-rw-r--r-- | source-builder/config/gcc-common-1.cfg | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source-builder/config/gcc-common-1.cfg b/source-builder/config/gcc-common-1.cfg index dd0cf4c..975318c 100644 --- a/source-builder/config/gcc-common-1.cfg +++ b/source-builder/config/gcc-common-1.cfg @@ -40,9 +40,12 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n) # target location and 'cd ..' fails. build_top=$(pwd) + gcc_source=%{?gcc_external:%{gcc_expand_name}}%{!?gcc_external:"gcc-%{gcc_version}"} + # gcc and optional the g++ core if separate packages - source_dir_gcc="gcc-%{gcc_version}" - %source setup gcc -q -n gcc-%{gcc_version} + source_dir_gcc=${gcc_source} + %source setup gcc -q -n ${gcc_source} + %patch setup gcc -p1 cd ${build_top} |