From: Matthias Clasen Date: Thu, 24 Sep 2009 14:26:46 +0000 (-0400) Subject: Fix location of gdb macros X-Git-Tag: 2.22.1~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cc95c60c69af5e25e9c9eae11f68ba2436a0e6b0;p=platform%2Fupstream%2Fglib.git Fix location of gdb macros These files need to be put in a location that corresponds to the location of the libraries, so we need to take the runtime-libdir path into account. --- diff --git a/configure.in b/configure.in index 16c3ad3..812c372 100644 --- a/configure.in +++ b/configure.in @@ -256,8 +256,10 @@ AC_ARG_WITH(runtime-libdir, [Install runtime libraries relative to libdir])], [], [with_runtime_libdir=""]) -GLIB_RUNTIME_LIBDIR=$with_runtime_libdir +GLIB_RUNTIME_LIBDIR="$with_runtime_libdir" +ABS_GLIB_RUNTIME_LIBDIR="`readlink -f $libdir/$with_runtime_libdir`" AC_SUBST(GLIB_RUNTIME_LIBDIR) +AC_SUBST(ABS_GLIB_RUNTIME_LIBDIR) AM_CONDITIONAL(HAVE_GLIB_RUNTIME_LIBDIR, [test "x$with_runtime_libdir" != "x"]) dnl Checks for programs. diff --git a/glib/Makefile.am b/glib/Makefile.am index d183ed5..ad72193 100644 --- a/glib/Makefile.am +++ b/glib/Makefile.am @@ -380,8 +380,8 @@ libglib-gdb.py: libglib-gdb.py.in install-data-hook: libglib-gdb.py - mkdir -p $(DESTDIR)$(datadir)/gdb/auto-load${libdir} - $(INSTALL) libglib-gdb.py $(DESTDIR)$(datadir)/gdb/auto-load${libdir}/libglib-2.0.so.0.$(LT_CURRENT).0-gdb.py + mkdir -p $(DESTDIR)$(datadir)/gdb/auto-load$(ABS_GLIB_RUNTIME_LIBDIR) + $(INSTALL) libglib-gdb.py $(DESTDIR)$(datadir)/gdb/auto-load$(ABS_GLIB_RUNTIME_LIBDIR)/libglib-2.0.so.0.$(LT_CURRENT).0-gdb.py if HAVE_GLIB_RUNTIME_LIBDIR mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR) mv $(DESTDIR)$(libdir)/libglib-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR) diff --git a/gobject/Makefile.am b/gobject/Makefile.am index a04a298..8ddf539 100644 --- a/gobject/Makefile.am +++ b/gobject/Makefile.am @@ -274,8 +274,8 @@ uninstall-gdb: -rm -r $(DESTDIR)$(datadir)/gdb install-data-hook: libgobject-gdb.py - mkdir -p $(DESTDIR)$(datadir)/gdb/auto-load${libdir} - $(INSTALL) libgobject-gdb.py $(DESTDIR)$(datadir)/gdb/auto-load${libdir}/libgobject-2.0.so.0.$(LT_CURRENT).0-gdb.py + mkdir -p $(DESTDIR)$(datadir)/gdb/auto-load/$(ABS_GLIB_RUNTIME_LIBDIR) + $(INSTALL) libgobject-gdb.py $(DESTDIR)$(datadir)/gdb/auto-load/$(ABS_GLIB_RUNTIME_LIBDIR)/libgobject-2.0.so.0.$(LT_CURRENT).0-gdb.py if HAVE_GLIB_RUNTIME_LIBDIR mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR) mv $(DESTDIR)$(libdir)/libgobject-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)