PR ada/15156 Use RANLIB_FLAGS to fix ppc-darwin
Laurent GUERBY
laurent@guerby.net
Sat Oct 2 07:54:00 GMT 2004
Suggested by Andrew Pinski, this passes boostrap and tests with c,ada
on x86 and x86_64 linux, Andrew will confirm wether it helps on
ppc-darwin.
Laurent
2004-10-02 Laurent GUERBY <laurent@guerby.net>
PR ada/15156
* Makefile.in: Define and use RANLIB_FLAGS.
Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ada/Makefile.in,v
retrieving revision 1.95
diff -u -r1.95 Makefile.in
--- Makefile.in 13 Sep 2004 10:18:40 -0000 1.95
+++ Makefile.in 2 Oct 2004 07:19:18 -0000
@@ -106,6 +106,7 @@
AR_FLAGS = rc
LS = ls
RANLIB = @RANLIB@
+RANLIB_FLAGS = @ranlib_flags@
SHELL = @SHELL@
PWD_COMMAND = $${PWDCMD-pwd}
@@ -1668,7 +1669,7 @@
-$(INSTALL_DATA) rts/g-trasym$(objext) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
-cd rts; for file in *$(arext);do \
$(INSTALL_DATA) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
- $(RANLIB) $(DESTDIR)$(ADA_RTL_OBJ_DIR)/$$file; \
+ -$(RANLIB) $(RANLIB_FLAGS) $(DESTDIR)$(ADA_RTL_OBJ_DIR)/$$file; \
done
-$(foreach file, $(EXTRA_ADALIB_FILES), \
$(INSTALL_DATA_DATE) rts/$(file) $(DESTDIR)$(ADA_RTL_OBJ_DIR) && \
@@ -1760,13 +1761,13 @@
ifneq ($(PREFIX_OBJS),)
$(AR) $(AR_FLAGS) rts/libgccprefix$(arext) $(PREFIX_OBJS);
endif
- -$(RANLIB) rts/libgnat$(arext)
+ -$(RANLIB) $(RANLIB_FLAGS) rts/libgnat$(arext)
$(AR) $(AR_FLAGS) rts/libgnarl$(arext) \
$(addprefix rts/,$(GNATRTL_TASKING_OBJS))
- -$(RANLIB) rts/libgnarl$(arext)
+ -$(RANLIB) $(RANLIB_FLAGS) rts/libgnarl$(arext)
ifeq ($(GMEM_LIB),gmemlib)
$(AR) $(AR_FLAGS) rts/libgmem$(arext) rts/memtrack.o
- -$(RANLIB) rts/libgmem$(arext)
+ -$(RANLIB) $(RANLIB_FLAGS) rts/libgmem$(arext)
endif
$(CHMOD) a-wx rts/*.ali
touch ../stamp-gnatlib
More information about the Gcc-patches
mailing list