Commit a0b4eeee by Michael Hayes Committed by Michael Hayes

Makefile.in (libgcc.a): Add $(LIBGCC1) to libgcc.a after $(LIBGCC2).

2000-02-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>

	* Makefile.in (libgcc.a): Add $(LIBGCC1) to libgcc.a after $(LIBGCC2).

From-SVN: r31804
parent b492151d
2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
* Makefile.in (libgcc.a): Add $(LIBGCC1) to libgcc.a after $(LIBGCC2).
2000-02-04 Neil Booth <NeilB@earthling.net> 2000-02-04 Neil Booth <NeilB@earthling.net>
* cccp.c (main): Check 'dir' for a NULL pointer before passing * cccp.c (main): Check 'dir' for a NULL pointer before passing
......
...@@ -1149,19 +1149,21 @@ libgcc2.a: libgcc2.c libgcc2.ready $(CONFIG_H) $(FPBIT) $(DPBIT) $(LIB2ADD) \ ...@@ -1149,19 +1149,21 @@ libgcc2.a: libgcc2.c libgcc2.ready $(CONFIG_H) $(FPBIT) $(DPBIT) $(LIB2ADD) \
# else true; fi # else true; fi
# Combine the various libraries into a single library, libgcc.a. # Combine the various libraries into a single library, libgcc.a.
# $(LIBGCC1) is added after $(LIBGCC2) so that routines written in
# assembler will be used in preference to the C versions.
libgcc.a: $(LIBGCC1) $(LIBGCC2) libgcc.a: $(LIBGCC1) $(LIBGCC2)
-rm -rf tmplibgcc.a libgcc.a tmpcopy -rm -rf tmplibgcc.a libgcc.a tmpcopy
mkdir tmpcopy mkdir tmpcopy
-if [ x$(LIBGCC1) != x ]; \ (cd tmpcopy; $(AR_FOR_TARGET) x ../$(LIBGCC2))
then (cd tmpcopy; $(AR_FOR_TARGET) x ../$(LIBGCC1)); \
else true; \
fi
# Some versions of ar (specifically the one in RISC/os 5.x), create an # Some versions of ar (specifically the one in RISC/os 5.x), create an
# unwritable table of contents file, and then print an error message when # unwritable table of contents file, and then print an error message when
# the second ar command tries to overwrite this file. To avoid the error # the second ar command tries to overwrite this file. To avoid the error
# message from ar, we make sure all files are writable. # message from ar, we make sure all files are writable.
-(cd tmpcopy; chmod +w * > /dev/null 2>&1) -(cd tmpcopy; chmod +w * > /dev/null 2>&1)
(cd tmpcopy; $(AR_FOR_TARGET) x ../$(LIBGCC2)) -if [ x$(LIBGCC1) != x ]; \
then (cd tmpcopy; $(AR_FOR_TARGET) x ../$(LIBGCC1)); \
else true; \
fi
(cd tmpcopy; $(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET) ../tmplibgcc.a *$(objext)) (cd tmpcopy; $(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET) ../tmplibgcc.a *$(objext))
rm -rf tmpcopy rm -rf tmpcopy
-if $(RANLIB_TEST_FOR_TARGET) ; then \ -if $(RANLIB_TEST_FOR_TARGET) ; then \
...@@ -1240,16 +1242,16 @@ stmp-multilib-sub: ...@@ -1240,16 +1242,16 @@ stmp-multilib-sub:
fi fi
rm -rf tmplibgcc.a tmpcopy rm -rf tmplibgcc.a tmpcopy
mkdir tmpcopy mkdir tmpcopy
if [ x$(LIBGCC1) != x ]; \ (cd tmpcopy; $(AR_FOR_TARGET) x ../$(LIBGCC2))
then (cd tmpcopy; $(AR_FOR_TARGET) x ../$(LIBGCC1)); \
else true; \
fi
# Some versions of ar (specifically the one in RISC/os 5.x), create an # Some versions of ar (specifically the one in RISC/os 5.x), create an
# unwritable table of contents file, and then print an error message when # unwritable table of contents file, and then print an error message when
# the second ar command tries to overwrite this file. To avoid the error # the second ar command tries to overwrite this file. To avoid the error
# message from ar, we make sure all files are writable. # message from ar, we make sure all files are writable.
-(cd tmpcopy; chmod +w * > /dev/null 2>&1) -(cd tmpcopy; chmod +w * > /dev/null 2>&1)
(cd tmpcopy; $(AR_FOR_TARGET) x ../$(LIBGCC2)) if [ x$(LIBGCC1) != x ]; \
then (cd tmpcopy; $(AR_FOR_TARGET) x ../$(LIBGCC1)); \
else true; \
fi
(cd tmpcopy; $(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET) ../tmplibgcc.a *$(objext)) (cd tmpcopy; $(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET) ../tmplibgcc.a *$(objext))
rm -rf libgcc2.a tmpcopy rm -rf libgcc2.a tmpcopy
if $(RANLIB_TEST_FOR_TARGET) ; then \ if $(RANLIB_TEST_FOR_TARGET) ; then \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment