[19/46] Make vect_dr_stmt return a stmt_vec_info
[official-gcc.git] / libgcc / config / t-slibgcc-sld
blob0b9539114e4be347b77a8d35e7d1ef8a257015e8
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 \
5         -Wl,-M,$(SHLIB_MAP)
7 ifeq ($(enable_shared),yes)
9 # Linker mapfile to enforce direct binding to libgcc_s unwinder
10 # (PR target/59788).
11 libgcc-unwind.map: libgcc-std.ver
12         @(echo "{";                             \
13         for f in `grep _Unwind_ $< | sort`; do  \
14           echo "        $$f = EXTERN DIRECT;";  \
15         done;                                   \
16         echo "};" ) > $@
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$$$$-$<; \
21         cp $< $$dest; \
22         chmod a+r $$dest; \
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
32 endif