OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [config/] [t-libunwind-elf] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 282 jeremybenn
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
2
#
3
# This file is part of GCC.
4
#
5
# GCC is free software; you can redistribute it and/or modify
6
# it under the terms of the GNU General Public License as published by
7
# the Free Software Foundation; either version 3, or (at your option)
8
# any later version.
9
#
10
# GCC is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
# GNU General Public License for more details.
14
#
15
# You should have received a copy of the GNU General Public License
16
# along with GCC; see the file COPYING3.  If not see
17
# .
18
 
19
# Build libunwind for ELF with the GNU linker.
20
 
21
# Use unwind-dw2-fde-glibc
22
LIBUNWIND = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde-glibc.c
23
LIBUNWINDDEP = unwind.inc unwind-dw2-fde.h unwind-dw2-fde.c
24
 
25
SHLIBUNWIND_SOVERSION = 7
26
SHLIBUNWIND_SONAME = @shlib_base_name@.so.$(SHLIBUNWIND_SOVERSION)
27
 
28
SHLIBUNWIND_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared \
29
        -nodefaultlibs -Wl,-h,$(SHLIBUNWIND_SONAME) \
30
        -Wl,-z,text -Wl,-z,defs -o $(SHLIB_DIR)/$(SHLIBUNWIND_SONAME).tmp \
31
        @multilib_flags@ $(SHLIB_OBJS) -lc && \
32
        rm -f $(SHLIB_DIR)/$(SHLIB_SOLINK) && \
33
        if [ -f $(SHLIB_DIR)/$(SHLIBUNWIND_SONAME) ]; then \
34
          mv -f $(SHLIB_DIR)/$(SHLIBUNWIND_SONAME) \
35
                $(SHLIB_DIR)/$(SHLIBUNWIND_SONAME).backup; \
36
        else true; fi && \
37
        mv $(SHLIB_DIR)/$(SHLIBUNWIND_SONAME).tmp \
38
           $(SHLIB_DIR)/$(SHLIBUNWIND_SONAME) && \
39
        $(LN_S) $(SHLIBUNWIND_SONAME) $(SHLIB_DIR)/$(SHLIB_SOLINK)
40
 
41
# $(slibdir) double quoted to protect it from expansion while building
42
# libgcc.mk.  We want this delayed until actual install time.
43
SHLIBUNWIND_INSTALL = \
44
        $$(SHELL) $$(srcdir)/mkinstalldirs $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL); \
45
        $(INSTALL_DATA) $(SHLIB_DIR)/$(SHLIBUNWIND_SONAME) \
46
          $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIBUNWIND_SONAME); \
47
        rm -f $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK); \
48
        $(LN_S) $(SHLIBUNWIND_SONAME) \
49
          $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.