]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Makefile.in (MULTIOSDIR): New macro.
authorAlexandre Oliva <aoliva@redhat.com>
Sun, 23 Mar 2003 10:15:50 +0000 (10:15 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Sun, 23 Mar 2003 10:15:50 +0000 (10:15 +0000)
* Makefile.in (MULTIOSDIR): New macro.  Use $(CC) $(LIBCFLAGS)
instead of $$CC alone.
(install_to_tooldir): Use it.

From-SVN: r64745

libiberty/ChangeLog
libiberty/Makefile.in

index d4b84d36826d6d5f17e0ecb8dc17b35aeb8f905f..0fe3e78e090b7495b6d4ae2d1c92723a02b18a53 100644 (file)
@@ -1,3 +1,9 @@
+2003-03-23  Alexandre Oliva  <aoliva@redhat.com>
+
+       * Makefile.in (MULTIOSDIR): New macro.  Use $(CC) $(LIBCFLAGS)
+       instead of $$CC alone.
+       (install_to_tooldir): Use it.
+
 2003-17-03  Jan Hubicka  <jh@suse.cz>
 
        * hashtab.c (htab_traverse_noresize): Break out from ...
index 064179669bd84dc6bdaa2c9306d900197c3a7dc9..737d239450a1f71e98634b98b9e322f1ca066030 100644 (file)
@@ -286,11 +286,16 @@ install_to_libdir: all
        fi
        @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
 
+# This is tricky.  Even though CC in the Makefile contains
+# multilib-specific flags, it's overridden by FLAGS_TO_PASS from the
+# default multilib, so we have to take LIBCFLAGS into account as well,
+# since it will be passed the multilib flags.
+MULTIOSDIR = `$(CC) $(LIBCFLAGS) -print-multi-os-directory`
 install_to_tooldir: all
-       ${mkinstalldirs} $(DESTDIR)$(tooldir)/lib/`$$CC -print-multi-os-directory`
-       $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(tooldir)/lib/`$$CC -print-multi-os-directory`/$(TARGETLIB)n
-       ( cd $(DESTDIR)$(tooldir)/lib/`$$CC -print-multi-os-directory` ; $(RANLIB) $(TARGETLIB)n )
-       mv -f $(DESTDIR)$(tooldir)/lib/`$$CC -print-multi-os-directory`/$(TARGETLIB)n $(DESTDIR)$(tooldir)/lib/`$$CC -print-multi-os-directory`/$(TARGETLIB)
+       ${mkinstalldirs} $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)
+       $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n
+       ( cd $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR) ; $(RANLIB) $(TARGETLIB)n )
+       mv -f $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)
        @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
 
 # needed-list is used by libstdc++.  NEEDED is the list of functions