mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
Fix the TB_ environment variables.
This commit is contained in:
parent
07607e2667
commit
a77f784f78
@ -35,12 +35,12 @@ cd ..
|
||||
%if "%{_build}" != "%{_host}"
|
||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
||||
%endif
|
||||
CFLAGS="$TB_OPT_FLAGS" \
|
||||
CFLAGS="$SB_OPT_FLAGS" \
|
||||
./configure \
|
||||
--build=%{_build} --host=%{_host} \
|
||||
--verbose --disable-nls \
|
||||
--without-included-gettext \
|
||||
--prefix=$TB_TMPPREFIX
|
||||
--prefix=$SB_TMPPREFIX
|
||||
|
||||
%{__make} %{?_smp_mflags} all
|
||||
|
||||
@ -48,7 +48,7 @@ cd ..
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
rm -rf $TB_BUILD_ROOT
|
||||
rm -rf $SB_BUILD_ROOT
|
||||
|
||||
cd autoconf-%{autoconf_version}
|
||||
%{__make} install
|
||||
|
@ -36,12 +36,12 @@ cd ..
|
||||
%if "%{_build}" != "%{_host}"
|
||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
||||
%endif
|
||||
CFLAGS="$TB_OPT_FLAGS" \
|
||||
CFLAGS="$SB_OPT_FLAGS" \
|
||||
./configure \
|
||||
--build=%{_build} --host=%{_host} \
|
||||
--verbose --disable-nls \
|
||||
--without-included-gettext \
|
||||
--prefix=$TB_TMPPREFIX
|
||||
--prefix=$SB_TMPPREFIX
|
||||
|
||||
%{__make} %{?_smp_mflags} all
|
||||
|
||||
@ -49,7 +49,7 @@ cd ..
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
rm -rf $TB_BUILD_ROOT
|
||||
rm -rf $SB_BUILD_ROOT
|
||||
|
||||
cd automake-%{automake_version}
|
||||
%{__make} install
|
||||
|
@ -34,7 +34,7 @@ cd ..
|
||||
%if "%{_build}" != "%{_host}"
|
||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
||||
%endif
|
||||
CFLAGS="$TB_OPT_FLAGS" \
|
||||
CFLAGS="$SB_OPT_FLAGS" \
|
||||
../binutils-%{binutils_version}/configure \
|
||||
--build=%{_build} --host=%{_host} \
|
||||
--target=%{_target} \
|
||||
@ -52,35 +52,35 @@ cd ..
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
rm -rf $TB_BUILD_ROOT
|
||||
rm -rf $SB_BUILD_ROOT
|
||||
|
||||
cd build
|
||||
%{__make} DESTDIR=$TB_BUILD_ROOT install
|
||||
%{__make} DESTDIR=$SB_BUILD_ROOT install
|
||||
|
||||
# Dropped in FSF-binutils-2.9.5, but Cygwin still ships it.
|
||||
rm -rf $TB_BUILD_ROOT%{_infodir}/configure.info*
|
||||
rm -rf $SB_BUILD_ROOT%{_infodir}/configure.info*
|
||||
|
||||
rm -f $TB_BUILD_ROOT%{_infodir}/dir
|
||||
touch $TB_BUILD_ROOT%{_infodir}/dir
|
||||
rm -f $SB_BUILD_ROOT%{_infodir}/dir
|
||||
touch $SB_BUILD_ROOT%{_infodir}/dir
|
||||
|
||||
# binutils does not install share/locale, however it uses it
|
||||
mkdir -p $TB_BUILD_ROOT%{_prefix}/share/locale
|
||||
mkdir -p $SB_BUILD_ROOT%{_prefix}/share/locale
|
||||
|
||||
# We don't ship host files
|
||||
rm -f ${TB_BUILD_ROOT}%{_libdir}/libiberty*
|
||||
rm -f ${SB_BUILD_ROOT}%{_libdir}/libiberty*
|
||||
|
||||
# manpages without corresponding tools
|
||||
if test ! -f ${TB_BUILD_ROOT}%{_bindir}/%{_target}-dlltool%{_exeext}; then
|
||||
rm -f ${TB_BUILD_ROOT}%{_mandir}/man1/%{_target}-dlltool*
|
||||
if test ! -f ${SB_BUILD_ROOT}%{_bindir}/%{_target}-dlltool%{_exeext}; then
|
||||
rm -f ${SB_BUILD_ROOT}%{_mandir}/man1/%{_target}-dlltool*
|
||||
fi
|
||||
if test ! -f ${TB_BUILD_ROOT}%{_bindir}/%{_target}-nlmconv%{_exeext}; then
|
||||
rm -f ${TB_BUILD_ROOT}%{_mandir}/man1/%{_target}-nlmconv*
|
||||
if test ! -f ${SB_BUILD_ROOT}%{_bindir}/%{_target}-nlmconv%{_exeext}; then
|
||||
rm -f ${SB_BUILD_ROOT}%{_mandir}/man1/%{_target}-nlmconv*
|
||||
fi
|
||||
if test ! -f ${TB_BUILD_ROOT}%{_bindir}/%{_target}-windres%{_exeext}; then
|
||||
rm -f ${TB_BUILD_ROOT}%{_mandir}/man1/%{_target}-windres*
|
||||
if test ! -f ${SB_BUILD_ROOT}%{_bindir}/%{_target}-windres%{_exeext}; then
|
||||
rm -f ${SB_BUILD_ROOT}%{_mandir}/man1/%{_target}-windres*
|
||||
fi
|
||||
if test ! -f ${TB_BUILD_ROOT}%{_bindir}/%{_target}-windmc%{_exeext}; then
|
||||
rm -f ${TB_BUILD_ROOT}%{_mandir}/man1/%{_target}-windmc*
|
||||
if test ! -f ${SB_BUILD_ROOT}%{_bindir}/%{_target}-windmc%{_exeext}; then
|
||||
rm -f ${SB_BUILD_ROOT}%{_mandir}/man1/%{_target}-windmc*
|
||||
fi
|
||||
|
||||
cd ..
|
||||
|
@ -35,7 +35,7 @@ cd ..
|
||||
%if "%{_build}" != "%{_host}"
|
||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
||||
%endif
|
||||
CFLAGS="$TB_OPT_FLAGS" \
|
||||
CFLAGS="$SB_OPT_FLAGS" \
|
||||
./configure \
|
||||
--build=%{_build} --host=%{_host} \
|
||||
--verbose --disable-nls \
|
||||
@ -51,9 +51,9 @@ cd ..
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
rm -rf $TB_BUILD_ROOT
|
||||
rm -rf $SB_BUILD_ROOT
|
||||
|
||||
cd expat-%{expat_version}
|
||||
%{__make} DESTDIR=$TB_BUILD_ROOT install
|
||||
%{__make} DESTDIR=$SB_BUILD_ROOT install
|
||||
|
||||
cd ..
|
||||
|
@ -112,10 +112,10 @@ Source22: ftp://ftp.gnu.org/gnu/gmp/gmp-%{gmp_version}.tar.bz2
|
||||
%endif
|
||||
%if "%{_build}" != "%{_host}"
|
||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
||||
CC="%{_host}-gcc ${TB_OPT_FLAGS}" \
|
||||
CC="%{_host}-gcc ${SB_OPT_FLAGS}" \
|
||||
%else
|
||||
# gcc is not ready to be compiled with -std=gnu99
|
||||
CC=$(echo "%{__cc} ${TB_OPT_FLAGS}" | sed -e 's,-std=gnu99 ,,') \
|
||||
CC=$(echo "%{__cc} ${SB_OPT_FLAGS}" | sed -e 's,-std=gnu99 ,,') \
|
||||
%endif
|
||||
../gcc-%{gcc_version}/configure \
|
||||
--prefix=%{_prefix} \
|
||||
@ -155,21 +155,21 @@ Source22: ftp://ftp.gnu.org/gnu/gmp/gmp-%{gmp_version}.tar.bz2
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
rm -rf $TB_BUILD_ROOT
|
||||
rm -rf $SB_BUILD_ROOT
|
||||
|
||||
cd build
|
||||
%{__make} DESTDIR=$TB_BUILD_ROOT install
|
||||
%{__make} DESTDIR=$SB_BUILD_ROOT install
|
||||
cd ..
|
||||
|
||||
# libiberty doesn't honor --libdir, but always installs to a
|
||||
# magically guessed _libdir
|
||||
rm -f ${TB_BUILD_ROOT}%{_libdir}/libiberty.a
|
||||
rm -f ${SB_BUILD_ROOT}%{_libdir}/libiberty.a
|
||||
|
||||
# We use the version from binutils
|
||||
rm -f $TB_BUILD_ROOT%{_bindir}/%{_target}-c++filt%{_exeext}
|
||||
rm -f $SB_BUILD_ROOT%{_bindir}/%{_target}-c++filt%{_exeext}
|
||||
|
||||
# We don't ship info/dir
|
||||
rm -f $TB_BUILD_ROOT%{_infodir}/dir
|
||||
rm -f $SB_BUILD_ROOT%{_infodir}/dir
|
||||
|
||||
# Don't want libffi's man-pages
|
||||
rm -f $TB_BUILD_ROOT%{_mandir}/man3/*ffi*
|
||||
rm -f $SB_BUILD_ROOT%{_mandir}/man3/*ffi*
|
||||
|
@ -33,7 +33,7 @@ cd ..
|
||||
%if "%{_build}" != "%{_host}"
|
||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
||||
%endif
|
||||
CFLAGS="$TB_OPT_FLAGS" \
|
||||
CFLAGS="$SB_OPT_FLAGS" \
|
||||
../gdb-%{gdb_version}/configure \
|
||||
--build=%{_build} --host=%{_host} \
|
||||
--target=%{_target} \
|
||||
@ -54,15 +54,15 @@ cd ..
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
rm -rf $TB_BUILD_ROOT
|
||||
rm -rf $SB_BUILD_ROOT
|
||||
|
||||
cd build
|
||||
%{__make} DESTDIR=$TB_BUILD_ROOT install
|
||||
%{__make} DESTDIR=$SB_BUILD_ROOT install
|
||||
|
||||
# Dropped in FSF-binutils-2.9.5, but Cygwin still ships it.
|
||||
rm -rf $TB_BUILD_ROOT%{_infodir}/configure.info*
|
||||
rm -rf $SB_BUILD_ROOT%{_infodir}/configure.info*
|
||||
|
||||
rm -f $TB_BUILD_ROOT%{_infodir}/dir
|
||||
touch $TB_BUILD_ROOT%{_infodir}/dir
|
||||
rm -f $SB_BUILD_ROOT%{_infodir}/dir
|
||||
touch $SB_BUILD_ROOT%{_infodir}/dir
|
||||
|
||||
cd ..
|
||||
|
@ -36,7 +36,7 @@ cd ..
|
||||
%if "%{_build}" != "%{_host}"
|
||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
||||
%endif
|
||||
CFLAGS="$TB_OPT_FLAGS" \
|
||||
CFLAGS="$SB_OPT_FLAGS" \
|
||||
./configure \
|
||||
--build=%{_build} --host=%{_host} \
|
||||
--verbose --disable-nls \
|
||||
@ -52,9 +52,9 @@ cd ..
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
rm -rf $TB_BUILD_ROOT
|
||||
rm -rf $SB_BUILD_ROOT
|
||||
|
||||
cd libusb-%{libusb_version}
|
||||
%{__make} DESTDIR=$TB_BUILD_ROOT install
|
||||
%{__make} DESTDIR=$SB_BUILD_ROOT install
|
||||
|
||||
cd ..
|
||||
|
Loading…
x
Reference in New Issue
Block a user