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

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

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

From-SVN: r266946
This commit is contained in:
Fredrik Nyström 2018-12-10 10:49:02 +01:00 committed by Rainer Orth
parent 1dc7836cdd
commit c0fff1d0e7
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2018-12-10 Fredrik Nyström <fredrik@lysator.liu.se>
PR bootstrap/65725
* config/sol2.h: Only use libgcc-unwind.map if
ENABLE_SHARED_LIBGCC.
2018-12-10 Bin Cheng <bin.cheng@linux.alibaba.com>
* auto-profile.c (afdo_calculate_branch_prob): Convert profile_count

View File

@ -397,7 +397,7 @@ along with GCC; see the file COPYING3. If not see
#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}"