From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14828 invoked by alias); 23 Sep 2009 18:57:14 -0000 Received: (qmail 14771 invoked by uid 48); 23 Sep 2009 18:57:03 -0000 Date: Wed, 23 Sep 2009 18:57:00 -0000 Message-ID: <20090923185703.14770.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug other/39888] TLS emutls not linked to automatically on Darwin In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "howarth at nitro dot med dot uc dot edu" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-09/txt/msg02234.txt.bz2 ------- Comment #18 from howarth at nitro dot med dot uc dot edu 2009-09-23 18:57 ------- Hmmm... MULTIOSSUBDIR := $(shell if test $(MULTIOSDIR) != .; then echo /$(MULTIOSDIR); fi) in gcc-4.4.1/libgcc/Makefile.in survives into the generated Makefile intact. So perhaps something like... SHLIB_LINK = $(CC) $(LIBGCC2_CFLAGS) -dynamiclib -nodefaultlibs \ -install_name @shlib_slibdir@/$(SHLIB_INSTALL_NAME) \ -single_module -o $(SHLIB_DIR)/$(SHLIB_SONAME).tmp \ $(shell if test @install_files@ = libgcc_ext.dylib ; then echo "-Wl,-unexported_symbols_list," ; else echo "-Wl,-exported_symbols_list," fi) \ $(shell if test @install_files@ = libgcc_ext.dylib ; then echo darwin-libgcc.10.5.ver; else echo $(SHLIB_MAP) fi) \ $(SHLIB_VERSTRING) \ @multilib_flags@ $(SHLIB_OBJS) $(SHLIB_LC) would work. FYI, I am just trying to reuse as much of the existing build machinery as possible here. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39888