OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.9 KiB

  1. Do not put gdb python plugin directly into $libdir
  2. Placing files like 'libisl.so.7.0.0-gdb.py' into '$libdir' results in
  3. warnings when running 'ldconfig' because it is not an ELF file.
  4. A common place where to put gdb plugins is '$datadir/gdb/auto-load$libdir'
  5. like '/usr/share/gdb/auto-load/usr/lib'.
  6. Note:
  7. This patch assumes that gdb and gcc are using the same prefix!
  8. --- a/isl/Makefile.am 2013-02-11 15:59:59.276023102 +0100
  9. +++ b/isl/Makefile.am 2013-02-11 16:04:04.802994331 +0100
  10. @@ -258,6 +258,6 @@
  11. case $$libisl in \
  12. '') echo Cannot find isl library name. GDB bindings not installed.;; \
  13. *) echo $(INSTALL_DATA) $(srcdir)/isl.py \
  14. - $(DESTDIR)$(libdir)/$$libisl-gdb.py; \
  15. - test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"; \
  16. - $(INSTALL_DATA) $(srcdir)/isl.py $(DESTDIR)$(libdir)/$$libisl-gdb.py; esac
  17. + $(DESTDIR)$(datadir)/gdb/auto-load$(libdir)/$$libisl-gdb.py; \
  18. + test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(datadir)/gdb/auto-load$(libdir)"; \
  19. + $(INSTALL_DATA) $(srcdir)/isl.py $(DESTDIR)$(datadir)/gdb/auto-load$(libdir)/$$libisl-gdb.py; esac
  20. --- a/isl/Makefile.in 2013-02-11 16:00:11.990994074 +0100
  21. +++ b/isl/Makefile.in 2013-02-11 16:03:32.413771959 +0100
  22. @@ -2189,9 +2189,9 @@
  23. case $$libisl in \
  24. '') echo Cannot find isl library name. GDB bindings not installed.;; \
  25. *) echo $(INSTALL_DATA) $(srcdir)/isl.py \
  26. - $(DESTDIR)$(libdir)/$$libisl-gdb.py; \
  27. - test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"; \
  28. - $(INSTALL_DATA) $(srcdir)/isl.py $(DESTDIR)$(libdir)/$$libisl-gdb.py; esac
  29. + $(DESTDIR)$(datadir)/gdb/auto-load$(libdir)/$$libisl-gdb.py; \
  30. + test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(datadir)/gdb/auto-load$(libdir)"; \
  31. + $(INSTALL_DATA) $(srcdir)/isl.py $(DESTDIR)$(datadir)/gdb/auto-load$(libdir)/$$libisl-gdb.py; esac
  32. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  33. # Otherwise a system limit (for SysV at least) may be exceeded.