From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14726 invoked by alias); 29 Nov 2007 09:08:28 -0000 Received: (qmail 14653 invoked by uid 48); 29 Nov 2007 09:08:15 -0000 Date: Thu, 29 Nov 2007 09:08:00 -0000 Message-ID: <20071129090815.14652.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/30572] [4.3 Regression] target libraries links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "ek dot kato at gmail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-11/txt/msg02900.txt.bz2 ------- Comment #13 from ek dot kato at gmail dot com 2007-11-29 09:08 ------- Oops, I noticed the diff sent yesterday was broken. Here is the correct one for the workaround. Index: libgcc/Makefile.in =================================================================== --- libgcc/Makefile.in (revision 130508) +++ libgcc/Makefile.in (working copy) @@ -100,8 +100,17 @@ # in-tree libraries, and DejaGNU) know about the layout # of the build tree, for now. $(MAKE) install DESTDIR=$(gcc_objdir) \ - slibdir= libsubdir= MULTIOSDIR=$(MULTIDIR) + slibdir=$(slibdir) libsubdir= MULTIOSDIR=$(MULTIDIR) + objdir="$(gcc_objdir)/$(slibdir)"; \ + if test -d $$objdir; then \ + for file in $$objdir/libgcc_s*; do \ + if test -f $$file -o -L $$file; then \ + mv -f $$file $(gcc_objdir)/; \ + fi; \ + done; \ + fi + .PHONY: all-multi all-multi: # If this is the top-level multilib, build all the other -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30572