Append %_bindir to PATH only if %_prefix != /usr.

This commit is contained in:
Ralf Corsepius
2005-09-15 10:38:26 +00:00
parent 41537bd5cc
commit b386d49132
2 changed files with 4 additions and 0 deletions

View File

@@ -201,7 +201,9 @@ chmod +x brp-rtems-compress
%if %build_libgcj
optargs="--enable-libgcj"
%endif
%if "%{_prefix}" != "/usr"
export PATH="%{_bindir}:${PATH}"
%endif
../gcc-%{gcc_version}/configure \
--prefix=%{_prefix} \
--bindir=%{_bindir} \

View File

@@ -86,7 +86,9 @@ cd ..
mkdir -p build
cd build
%if "%{_prefix}" != "/usr"
export PATH="%{_bindir}:${PATH}"
%endif
CFLAGS="$RPM_OPT_FLAGS" \
../gdb-%{gdb_version}/configure \
--build=%_build --host=%_host \