diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2004-10-18 15:52:51 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2004-10-18 08:52:51 -0700 |
commit | 3b415018d356df95c607713ec876ade84884b311 (patch) | |
tree | 1fd7915d31e9eb0be41a80146cd85b0abc22da58 /gcc/config/arm/t-netbsd | |
parent | a2041967826c644f860ec12c6f32214b1e3d3899 (diff) | |
download | gcc-3b415018d356df95c607713ec876ade84884b311.zip gcc-3b415018d356df95c607713ec876ade84884b311.tar.gz gcc-3b415018d356df95c607713ec876ade84884b311.tar.bz2 |
re PR bootstrap/17684 (/usr/ccs/bin/ld: Can't create libgcc_s.sl)
2004-11-18 H.J. Lu <hongjiu.lu@intel.com>
PR bootstrap/17684
* Makefile.in (clean): Remove libgcc_s$(SHLIB_EXT).1.stage?.
(stage1-start): Remove and copy libunwind.a and
libunwind*$(SHLIB_EXT) instead of libunwind*.
(stage2-start): Likewise.
(stage3-start): Likewise.
(stage4-start): Likewise.
(stageprofile-start): Likewise.
(stagefeedback-start): Likewise.
* config/alpha/t-osf4 (SHLIB_LINK): Use a temporary file for
the shared library to be created and don't remove the existing
shared library.
* config/arm/t-netbsd (SHLIB_LINK): Likewise.
* config/i386/t-nwld (SHLIB_LINK): Likewise.
* config/mips/t-slibgcc-irix (SHLIB_LINK): Likewise.
* config/pa/t-hpux-shlib (SHLIB_LINK): Likewise.
* config/sh/t-linux (SHLIB_LINK): Likewise.
* config/t-libunwind-elf (SHLIBUNWIND_LINK): Likewise.
* config/t-slibgcc-darwin (SHLIB_LINK): Likewise.
* config/t-slibgcc-elf-ver (SHLIB_LINK): Likewise.
* config/t-slibgcc-sld (SHLIB_LINK): Likewise.
* mklibgcc.in (libgcc-stage-start): Also move "*${objext}s"
files.
From-SVN: r89227
Diffstat (limited to 'gcc/config/arm/t-netbsd')
-rw-r--r-- | gcc/config/arm/t-netbsd | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/config/arm/t-netbsd b/gcc/config/arm/t-netbsd index 77e6227..c5b4e68 100644 --- a/gcc/config/arm/t-netbsd +++ b/gcc/config/arm/t-netbsd @@ -11,8 +11,12 @@ SHLIB_OBJS = @shlib_objs@ SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \ -Wl,-soname,$(SHLIB_SONAME) \ - -o $(SHLIB_NAME) @multilib_flags@ $(SHLIB_OBJS) -lc && \ + -o $(SHLIB_NAME).tmp @multilib_flags@ $(SHLIB_OBJS) -lc && \ rm -f $(SHLIB_SONAME) && \ + if [ -f $(SHLIB_NAME) ]; then \ + mv -f $(SHLIB_NAME) $(SHLIB_NAME).`basename $(STAGE_PREFIX)`; \ + else true; fi && \ + mv $(SHLIB_NAME).tmp $(SHLIB_NAME) && \ $(LN_S) $(SHLIB_NAME) $(SHLIB_SONAME) # $(slibdir) double quoted to protect it from expansion while building # libgcc.mk. We want this delayed until actual install time. |