summaryrefslogtreecommitdiffstats
path: root/scripts/gdb/gdb.add
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gdb/gdb.add')
-rw-r--r--scripts/gdb/gdb.add2
1 files changed, 2 insertions, 0 deletions
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 \