]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/t-libunwind-elf
basic-block.h (reg_set_iterator): New.
[thirdparty/gcc.git] / gcc / config / t-libunwind-elf
CommitLineData
443728bb
L
1# Build libunwind for ELF with the GNU linker.
2
3# Use unwind-dw2-fde-glibc
4LIBUNWIND = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde-glibc.c
5LIBUNWINDDEP = unwind.inc unwind-dw2-fde.h unwind-dw2-fde.c
6
7SHLIBUNWIND_SOVERSION = 7
8SHLIBUNWIND_SONAME = @shlib_so_name@.so.$(SHLIBUNWIND_SOVERSION)
9SHLIBUNWIND_NAME = @shlib_dir@@shlib_so_name@.so.$(SHLIBUNWIND_SOVERSION)
10
11SHLIBUNWIND_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared \
12 -nodefaultlibs -Wl,-h,$(SHLIBUNWIND_SONAME) \
13 -Wl,-z,text -Wl,-z,defs \
14 -o $(SHLIBUNWIND_NAME) @multilib_flags@ $(SHLIB_OBJS) -lc && \
15 rm -f $(SHLIB_SOLINK) && \
16 $(LN_S) $(SHLIBUNWIND_NAME) $(SHLIB_SOLINK)
17
18# $(slibdir) double quoted to protect it from expansion while building
19# libgcc.mk. We want this delayed until actual install time.
20SHLIBUNWIND_INSTALL = \
21 $$(SHELL) $$(srcdir)/mkinstalldirs $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL); \
22 $(INSTALL_DATA) $(SHLIBUNWIND_NAME) \
23 $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIBUNWIND_SONAME); \
24 rm -f $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK); \
25 $(LN_S) $(SHLIBUNWIND_SONAME) \
26 $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK)