]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Don't install libintl.la if the package shall be relocatable.
authorBruno Haible <bruno@clisp.org>
Mon, 7 Apr 2003 10:50:09 +0000 (10:50 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:10:21 +0000 (12:10 +0200)
gettext-runtime/intl/ChangeLog
gettext-runtime/intl/Makefile.in

index ea811b85f041fcb3f4afc32b79a8f62c8985bd98..4c4a407c6186e0d14d114e9e4c9bff407766c687 100644 (file)
@@ -1,3 +1,9 @@
+2003-04-06  Bruno Haible  <bruno@clisp.org>
+
+       * Makefile.in (install-exec): Remove the installed libintl.la if it
+       has hardwired pathnames in dependency_libs and the installed package
+       shall be relocatable.
+
 2003-04-05  Bruno Haible  <bruno@clisp.org>
 
        * relocatable.c: Rely on DEPENDS_ON_LIBCHARSET, DEPENDS_ON_LIBICONV,
index 90321e86a948164b14244891c6e68e8278af4954..26bfdc840aab4e05b4ab4e0989b4aac892cbbbf2 100644 (file)
@@ -246,6 +246,12 @@ install-exec: all
          $(INSTALL_DATA) libintl.h $(DESTDIR)$(includedir)/libintl.h; \
          $(LIBTOOL) --mode=install \
            $(INSTALL_DATA) libintl.$la $(DESTDIR)$(libdir)/libintl.$la; \
+         if test "@RELOCATABLE@" = yes; then \
+           dependencies=`sed -n -e 's,^dependency_libs=\(.*\),\1,p' < $(DESTDIR)$(libdir)/libintl.la | sed -e "s,^',," -e "s,'\$$,,"`; \
+           if test -n "$dependencies"; then \
+             rm -f $(DESTDIR)$(libdir)/libintl.la; \
+           fi; \
+         fi; \
        else \
          : ; \
        fi