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]

Don't try to use libgcc-unwind.map with --disable-shared (PR bootstrap/65725)


When configuring with --disable-shared, Solaris bootstrap with the
system ld fails since libgcc-unwind.map is missing.  This is no wonder,
given that the file is only generated with --enable-shared.  The
following patch, from the PR, fixes this.

Bootstrapped on amd64-pc-solaris2.11, installed on mainline.

There were many unrelated issues, usually occuring on Linux as well as
Solaris, for a --disable-shared configuration, which I'll either fix or
report separately.

	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University


2018-12-09  Fredrik Nyström  <fredrik@lysator.liu.se>

	PR bootstrap/65725
	* config/sol2.h: Only use libgcc-unwind.map if
	ENABLE_SHARED_LIBGCC.

# HG changeset patch
# Parent  aefe43ddbbcf7dca119fa6cb2121526461337953
Don't try to use libgcc-unwind.map with --disable-shared (PR bootstrap/65725)

diff --git a/gcc/config/sol2.h b/gcc/config/sol2.h
--- a/gcc/config/sol2.h
+++ b/gcc/config/sol2.h
@@ -397,7 +397,7 @@ along with GCC; see the file COPYING3.  
 #define SYSROOT_SPEC "-z sysroot=%R"
 #endif
 
-#ifndef USE_GLD
+#if !defined(USE_GLD) && defined(ENABLE_SHARED_LIBGCC)
 /* With Sun ld, use mapfile to enforce direct binding to libgcc_s unwinder.  */
 #define LINK_LIBGCC_MAPFILE_SPEC \
   "%{shared|shared-libgcc:-M %slibgcc-unwind.map}"

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