This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix PR target/30572 libgcc_s install name


Etsushi Kato wrote:
Hi,

Here is a patch to keep slibdir defined while making libgcc_s* to add
appropriate install names on darwin.  Without this, install name of
libgcc_s.1dylib becomes '/libgcc_s.1.dylib' and all binaries linked to
the library won't work.

Would something like this work instead?


Index: base-gcc-src/libgcc/config/t-slibgcc-darwin
===================================================================
--- base-gcc-src/libgcc/config/t-slibgcc-darwin (revision 130928)
+++ base-gcc-src/libgcc/config/t-slibgcc-darwin (working copy)
@@ -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 @slibdir@/$(SHLIB_INSTALL_NAME) \
-single_module -o $(SHLIB_DIR)/$(SHLIB_SONAME).tmp \
-Wl,-exported_symbols_list,$(SHLIB_MAP) \
$(SHLIB_VERSTRING) \




Paolo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]