From: Fredrik Nyström Date: Mon, 10 Dec 2018 09:49:02 +0000 (+0100) Subject: Don't try to use libgcc-unwind.map with --disable-shared (PR bootstrap/65725) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c0fff1d0e70da9dcd70c099b22fdb2f1344b633b;p=gcc.git Don't try to use libgcc-unwind.map with --disable-shared (PR bootstrap/65725) 2018-12-10 Fredrik Nyström PR bootstrap/65725 * config/sol2.h: Only use libgcc-unwind.map if ENABLE_SHARED_LIBGCC. From-SVN: r266946 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bffa8e29591..69f7da68f61 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-12-10 Fredrik Nyström + + PR bootstrap/65725 + * config/sol2.h: Only use libgcc-unwind.map if + ENABLE_SHARED_LIBGCC. + 2018-12-10 Bin Cheng * auto-profile.c (afdo_calculate_branch_prob): Convert profile_count diff --git a/gcc/config/sol2.h b/gcc/config/sol2.h index 197acfbd0fe..a6746c4b7fb 100644 --- a/gcc/config/sol2.h +++ b/gcc/config/sol2.h @@ -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}"