OSDN Git Service

2007-12-19 Etsushi Kato <ek.kato@gmail.com>
authorbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 19 Dec 2007 14:28:32 +0000 (14:28 +0000)
committerbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 19 Dec 2007 14:28:32 +0000 (14:28 +0000)
    Paolo Bonzini  <bonzini@gnu.org>

PR target/30572
* Makefile.in: Use @shlib_slibdir@ substitution to get correct install name
on darwin.
* config/t-slibgcc-darwin: Use @shlib_slibdir@ for -install_name.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131062 138bc75d-0d04-0410-961f-82ee72b054a4

libgcc/ChangeLog
libgcc/Makefile.in
libgcc/config/t-slibgcc-darwin

index e38b757..d5481be 100644 (file)
@@ -1,3 +1,11 @@
+2007-12-19  Etsushi Kato  <ek.kato@gmail.com>
+           Paolo Bonzini  <bonzini@gnu.org>
+
+       PR target/30572
+       * Makefile.in: Use @shlib_slibdir@ substitution to get correct install name
+       on darwin.
+       * config/t-slibgcc-darwin: Use @shlib_slibdir@ for -install_name.
+                               
 2007-12-15  Hans-Peter Nilsson  <hp@axis.com>
 
        * config.host (crisv32-*-elf, crisv32-*-none): New, same as
index 60feaff..24894e6 100644 (file)
@@ -32,6 +32,7 @@ prefix = @prefix@
 
 exec_prefix = @exec_prefix@
 libdir = @libdir@
+shlib_slibdir = @slibdir@
 
 SHELL = @SHELL@
 
@@ -739,7 +740,8 @@ libgcc_s$(SHLIB_EXT): $(libgcc-s-objects) $(extra-parts)
                @shlib_objs@,$(objects),$(subst \
                @shlib_base_name@,libgcc_s,$(subst \
                @shlib_map_file@,$(mapfile),$(subst \
-               @shlib_slibdir_qual@,$(MULTIOSSUBDIR),$(SHLIB_LINK)))))))
+               @shlib_slibdir_qual@,$(MULTIOSSUBDIR),$(subst \
+               @shlib_slibdir@,$(shlib_slibdir),$(SHLIB_LINK))))))))
 
 libunwind$(SHLIB_EXT): $(libunwind-s-objects) $(extra-parts)
        # @multilib_flags@ is still needed because this may use
index 507821d..d1e4311 100644 (file)
@@ -16,7 +16,7 @@ SHLIB_LC = -lc
 # Note that this version is used for the loader, not the linker; the linker
 # uses the stub versions named by the versioned members of $(INSTALL_FILES).
 SHLIB_LINK = $(CC) $(LIBGCC2_CFLAGS) -dynamiclib -nodefaultlibs \
-       -install_name $(slibdir)/$(SHLIB_INSTALL_NAME) \
+       -install_name @shlib_slibdir@/$(SHLIB_INSTALL_NAME) \
        -single_module -o $(SHLIB_DIR)/$(SHLIB_SONAME).tmp \
        -Wl,-exported_symbols_list,$(SHLIB_MAP) \
        $(SHLIB_VERSTRING) \