Don't build libgcc-unwind.map with --disable-shared (PR libgcc/61097)

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

From-SVN: r210210
This commit is contained in:
Rainer Orth 2014-05-08 12:11:14 +00:00 committed by Rainer Orth
parent a96c6a62ae
commit cceaf54a4a
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,9 @@
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.
2014-04-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
Work around for current cygwin32 build problems.

View File

@ -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.map
$(INSTALL_DATA) $< $(DESTDIR)$(slibdir)
install: install-libgcc-unwind-map
endif