summaryrefslogtreecommitdiff
path: root/gcc/config/t-slibgcc-sld
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/t-slibgcc-sld')
-rw-r--r--gcc/config/t-slibgcc-sld6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/t-slibgcc-sld b/gcc/config/t-slibgcc-sld
index 5f2a5cafcbd..9a81af9ceb7 100644
--- a/gcc/config/t-slibgcc-sld
+++ b/gcc/config/t-slibgcc-sld
@@ -3,7 +3,7 @@
SHLIB_EXT = .so
SHLIB_SOLINK = @shlib_base_name@.so
SHLIB_SONAME = @shlib_so_name@.so.1
-SHLIB_NAME = @shlib_dir@@shlib_so_name@.so.1
+SHLIB_NAME = @shlib_base_name@.so.1
SHLIB_MAP = @shlib_map_file@
SHLIB_OBJS = @shlib_objs@
SHLIB_SLIBDIR_QUAL = @shlib_slibdir_qual@
@@ -12,12 +12,12 @@ SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
-Wl,-h,$(SHLIB_SONAME) -Wl,-z,text -Wl,-z,defs \
-Wl,-M,$(SHLIB_MAP) -o $(SHLIB_NAME).tmp \
@multilib_flags@ $(SHLIB_OBJS) -lc && \
- rm -f @shlib_dir@$(SHLIB_SOLINK) && \
+ rm -f $(SHLIB_SOLINK) && \
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_SONAME) @shlib_dir@$(SHLIB_SOLINK)
+ $(LN_S) $(SHLIB_SONAME) $(SHLIB_SOLINK)
# $(slibdir) double quoted to protect it from expansion while building
# libgcc.mk. We want this delayed until actual install time.
SHLIB_INSTALL = \