This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libgcc.mk fallout


David Edelsohn <dje@watson.ibm.com> writes:

> Filenames such as tmp-.libgcc_s.a do not work well.  As with the earlier
> problems, "./" is breaking things.

I think that the best fix is the following patch.  This problem won't
just bite the . multilib, after all.  Could you test it please?

zw

        * config/rs6000/t-aix43, config/rs6000/t-aix52 (SHLIB_LINK):
        Change temporary file tag from a prefix to an infix.

===================================================================
Index: config/rs6000/t-aix43
--- config/rs6000/t-aix43	9 Jan 2003 08:00:41 -0000	1.19
+++ config/rs6000/t-aix43	1 Dec 2004 17:54:16 -0000
@@ -49,9 +49,9 @@ SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2
 	`case @shlib_base_name@ in \
 	*pthread*) echo -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a ;; \
 	*) echo -lc ;; esac` ; \
-	rm -f tmp-@shlib_base_name@.a ; \
-	$(AR_CREATE_FOR_TARGET) tmp-@shlib_base_name@.a @multilib_dir@/shr.o ; \
-	mv tmp-@shlib_base_name@.a @shlib_base_name@.a ; \
+	rm -f @shlib_base_name@-tmp.a ; \
+	$(AR_CREATE_FOR_TARGET) @shlib_base_name@-tmp.a @multilib_dir@/shr.o ; \
+	mv @shlib_base_name@-tmp.a @shlib_base_name@.a ; \
 	rm -f @multilib_dir@/shr.o
 # $(slibdir) double quoted to protect it from expansion while building
 # libgcc.mk.  We want this delayed until actual install time.
===================================================================
Index: config/rs6000/t-aix52
--- config/rs6000/t-aix52	14 Nov 2004 03:32:11 -0000	1.3
+++ config/rs6000/t-aix52	1 Dec 2004 17:54:16 -0000
@@ -30,9 +30,9 @@ SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2
 	`case @shlib_base_name@ in \
 	*pthread*) echo -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a ;; \
 	*) echo -lc ;; esac` ; \
-	rm -f tmp-@shlib_base_name@.a ; \
-	$(AR_CREATE_FOR_TARGET) tmp-@shlib_base_name@.a @multilib_dir@/shr.o ; \
-	mv tmp-@shlib_base_name@.a @shlib_base_name@.a ; \
+	rm -f @shlib_base_name@-tmp.a ; \
+	$(AR_CREATE_FOR_TARGET) @shlib_base_name@-tmp.a @multilib_dir@/shr.o ; \
+	mv @shlib_base_name@-tmp.a @shlib_base_name@.a ; \
 	rm -f @multilib_dir@/shr.o
 # $(slibdir) double quoted to protect it from expansion while building
 # libgcc.mk.  We want this delayed until actual install time.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]