diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-09-15 10:38:26 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-09-15 10:38:26 +0000 |
commit | b386d491325b7cacacafb691c84ef27a22353b15 (patch) | |
tree | 8d6d98e10db9395a22ca7c3c55a1280f50cc3062 /scripts | |
parent | 2005-09-15 Ralf Corsepius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-b386d491325b7cacacafb691c84ef27a22353b15.tar.bz2 |
Append %_bindir to PATH only if %_prefix != /usr.
Diffstat (limited to '')
-rw-r--r-- | scripts/gccnewlib/gccnewlib.add | 2 | ||||
-rw-r--r-- | scripts/gdb/gdb.add | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/scripts/gccnewlib/gccnewlib.add b/scripts/gccnewlib/gccnewlib.add index 3d098b5993..a776cc54a9 100644 --- a/scripts/gccnewlib/gccnewlib.add +++ b/scripts/gccnewlib/gccnewlib.add @@ -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} \ diff --git a/scripts/gdb/gdb.add b/scripts/gdb/gdb.add index f908c0bf93..b89cd71b75 100644 --- a/scripts/gdb/gdb.add +++ b/scripts/gdb/gdb.add @@ -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 \ |