From 89deeaffbbfd671c5e57190b999ee10c6f4af07f Mon Sep 17 00:00:00 2001 From: Etsushi Kato Date: Wed, 19 Dec 2007 14:28:32 +0000 Subject: re PR target/30572 (target libraries links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib) 2007-12-19 Etsushi Kato Paolo Bonzini 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. Co-Authored-By: Paolo Bonzini From-SVN: r131062 --- libgcc/ChangeLog | 8 ++++++++ libgcc/Makefile.in | 4 +++- libgcc/config/t-slibgcc-darwin | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) (limited to 'libgcc') diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index e38b757..d5481be 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,11 @@ +2007-12-19 Etsushi Kato + Paolo Bonzini + + 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 * config.host (crisv32-*-elf, crisv32-*-none): New, same as diff --git a/libgcc/Makefile.in b/libgcc/Makefile.in index 60feaff..24894e6 100644 --- a/libgcc/Makefile.in +++ b/libgcc/Makefile.in @@ -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 diff --git a/libgcc/config/t-slibgcc-darwin b/libgcc/config/t-slibgcc-darwin index 507821d..d1e4311 100644 --- a/libgcc/config/t-slibgcc-darwin +++ b/libgcc/config/t-slibgcc-darwin @@ -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) \ -- cgit v1.1