diff options
author | Chris Johns <chrisj@rtems.org> | 2013-04-01 15:19:56 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2013-04-01 15:19:56 +1100 |
commit | 4f26bdb2f0372abc1273f16594e9ac1fd96e0559 (patch) | |
tree | f904e09cfe49b15b35b66d96a934a139c497a132 /source-builder/config/autoconf-2-1.cfg | |
parent | Add which type of hosts work. Some 32bit hosts have issues. (diff) | |
download | rtems-source-builder-4f26bdb2f0372abc1273f16594e9ac1fd96e0559.tar.bz2 |
Add Canadian Cross support.
Add support to build MinGW tools using Cygwin. This is a Canadian cross
build.
Do not expand the directives when parsing a configuration file. Hold
in the package object the text as read from the configuration file. Still
parse the logic but leave the macros. This allows a configuration to be
varied when the build happens. The Canadian cross uses this to build a
build compiler used to build a Cxc runtime.
Add Cxc support to the build module. In the defaults add rm and rmfile
macros, add Cxc paths and pre-build script code.
In the setbuilder check for a Cxc build and if so and the package
allow Cxc build the build host version then the host target
version.
Add cygiwn support to the defaults processing and to the Windows module.
Diffstat (limited to 'source-builder/config/autoconf-2-1.cfg')
-rw-r--r-- | source-builder/config/autoconf-2-1.cfg | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/source-builder/config/autoconf-2-1.cfg b/source-builder/config/autoconf-2-1.cfg index c3d0dff..51e683d 100644 --- a/source-builder/config/autoconf-2-1.cfg +++ b/source-builder/config/autoconf-2-1.cfg @@ -25,10 +25,10 @@ VersionControl0: git clone git://git.sv.gnu.org/autoconf # Prepare the source code. # %prep -%setup -q -c -n %{name}-%{version} -cd autoconf-%{autoconf_version} -%{?patch0:%patch0 -p1} -cd .. + %setup -q -c -n %{name}-%{version} + cd autoconf-%{autoconf_version} + %{?patch0:%patch0 -p1} + cd .. %build if test "%{_internal_autotools}" == "yes"; then @@ -45,9 +45,11 @@ cd .. ac_prefix=%{_prefix} fi -%if "%{_build}" != "%{_host}" - CFLAGS_FOR_BUILD="-g -O2 -Wall" \ -%endif + if test "%{_build}" != "%{_host}" ; then + CFLAGS_FOR_BUILD="-g -O2 -Wall" + fi + export CFLAGS CFLAGS_FOR_BUILD CC + CFLAGS="$SB_OPT_FLAGS" \ ./configure \ --build=%{_build} --host=%{_host} \ @@ -57,6 +59,8 @@ cd .. %{__make} %{?_smp_mflags} all + unset CFLAGS_FOR_BUILD + cd .. %install |