public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [libgcc, build] Don't build libgcc-unwind.map with --disable-shared (PR libgcc/61097)
@ 2014-05-08 12:14 Rainer Orth
  0 siblings, 0 replies; only message in thread
From: Rainer Orth @ 2014-05-08 12:14 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 633 bytes --]

As reported in the PR, libgcc fails to build on Solaris with
--disable-shared: the creation of libgcc-unwind.map depends on
libgcc-std.ver which isn't built in this case.

Fixed as follows, tested by verifying that a --disable-shared
i386-pc-solaris2.10 build gets into stage2 without trying to build map
files, while a default (i.e. --enable-shared) build still correctly
builds the maps.

Installed on mainline; will backport to the 4.9 branch in a few days.

	Rainer


2014-05-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	PR libgcc/61097
	* config/t-slibgcc-sld: Only build and install libgcc-unwind.map
	if --enable-shared.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: sol2-libgcc-unwind-static.patch --]
[-- Type: text/x-patch, Size: 688 bytes --]

# HG changeset patch
# Parent 8b4f4776ed04d118977a300b92559035f3b7a49b
Don't build libgcc-unwind.map with --disable-shared (PR libgcc/61097)

diff --git a/libgcc/config/t-slibgcc-sld b/libgcc/config/t-slibgcc-sld
--- a/libgcc/config/t-slibgcc-sld
+++ b/libgcc/config/t-slibgcc-sld
@@ -4,6 +4,8 @@
 SHLIB_LDFLAGS = -Wl,-h,$(SHLIB_SONAME) -Wl,-z,text -Wl,-z,defs \
 	-Wl,-M,$(SHLIB_MAP)
 
+ifeq ($(enable_shared),yes)
+
 # Linker mapfile to enforce direct binding to libgcc_s unwinder
 # (PR target/59788).
 libgcc-unwind.map: libgcc-std.ver
@@ -26,3 +28,5 @@ install-libgcc-unwind-map: libgcc-unwind
 	$(INSTALL_DATA) $< $(DESTDIR)$(slibdir)
 
 install: install-libgcc-unwind-map
+
+endif

[-- Attachment #3: Type: text/plain, Size: 143 bytes --]


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-05-08 12:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-08 12:14 [libgcc, build] Don't build libgcc-unwind.map with --disable-shared (PR libgcc/61097) Rainer Orth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).