1 # Build a shared libgcc library for ELF with symbol versioning
2 # with the Solaris linker.
4 SHLIB_LDFLAGS = -Wl,-h,$(SHLIB_SONAME) -Wl,-z,text -Wl,-z,defs \
7 ifeq ($(enable_shared),yes)
9 # Linker mapfile to enforce direct binding to libgcc_s unwinder
11 libgcc-unwind.map: libgcc-std.ver
13 for f in `grep _Unwind_ $< | sort`; do \
14 echo " $$f = EXTERN DIRECT;"; \
18 # Copy libgcc-unwind.map to the place where gcc will look for it at build-time.
19 install-libgcc-unwind-map-forbuild: libgcc-unwind.map
20 dest=$(gcc_objdir)/tmp$$$$-$<; \
23 sh $(srcdir)/../move-if-change $$dest $(gcc_objdir)/$<
25 all: install-libgcc-unwind-map-forbuild
27 install-libgcc-unwind-map: libgcc-unwind.map
28 $(INSTALL_DATA) $< $(DESTDIR)$(slibdir)
30 install: install-libgcc-unwind-map