diff --git a/Makefile.pre.in b/Makefile.pre.in index 4afa5ec09ec..1047f438f51 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -442,7 +442,7 @@ libpython$(VERSION).sl: $(LIBRARY_OBJS) # to the stripped DWARF data for the shared library. gdbhooks: $(BUILDPYTHON)-gdb.py -SRC_GDB_HOOKS=Tools/gdb/libpython.py +SRC_GDB_HOOKS=$(srcdir)/Tools/gdb/libpython.py $(BUILDPYTHON)-gdb.py: $(SRC_GDB_HOOKS) $(INSTALL_DATA) $(SRC_GDB_HOOKS) $(BUILDPYTHON)-gdb.py