]> granicus.if.org Git - python/commitdiff
Ensure that the gdb hooks can be installed when
authorRonald Oussoren <ronaldoussoren@mac.com>
Mon, 5 Apr 2010 11:21:21 +0000 (11:21 +0000)
committerRonald Oussoren <ronaldoussoren@mac.com>
Mon, 5 Apr 2010 11:21:21 +0000 (11:21 +0000)
srcdir != builddir.

Without this patch it is no longer possible to
build python when you don't run configure from
the root of the source tree.

Makefile.pre.in

index 4afa5ec09ec720a62cbc6d357308e0851e16b2e2..1047f438f511a2c13e9eaa36672ec8791616c830 100644 (file)
@@ -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