URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
38 |
julius |
# Build libunwind for ELF with the GNU linker.
|
2 |
|
|
|
3 |
|
|
# Use unwind-dw2-fde-glibc
|
4 |
|
|
LIBUNWIND = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde-glibc.c
|
5 |
|
|
LIBUNWINDDEP = unwind.inc unwind-dw2-fde.h unwind-dw2-fde.c
|
6 |
|
|
|
7 |
|
|
SHLIBUNWIND_SOVERSION = 7
|
8 |
|
|
SHLIBUNWIND_SONAME = @shlib_base_name@.so.$(SHLIBUNWIND_SOVERSION)
|
9 |
|
|
|
10 |
|
|
SHLIBUNWIND_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared \
|
11 |
|
|
-nodefaultlibs -Wl,-h,$(SHLIBUNWIND_SONAME) \
|
12 |
|
|
-Wl,-z,text -Wl,-z,defs -o $(SHLIB_DIR)/$(SHLIBUNWIND_SONAME).tmp \
|
13 |
|
|
@multilib_flags@ $(SHLIB_OBJS) -lc && \
|
14 |
|
|
rm -f $(SHLIB_DIR)/$(SHLIB_SOLINK) && \
|
15 |
|
|
if [ -f $(SHLIB_DIR)/$(SHLIBUNWIND_SONAME) ]; then \
|
16 |
|
|
mv -f $(SHLIB_DIR)/$(SHLIBUNWIND_SONAME) \
|
17 |
|
|
$(SHLIB_DIR)/$(SHLIBUNWIND_SONAME).backup; \
|
18 |
|
|
else true; fi && \
|
19 |
|
|
mv $(SHLIB_DIR)/$(SHLIBUNWIND_SONAME).tmp \
|
20 |
|
|
$(SHLIB_DIR)/$(SHLIBUNWIND_SONAME) && \
|
21 |
|
|
$(LN_S) $(SHLIBUNWIND_SONAME) $(SHLIB_DIR)/$(SHLIB_SOLINK)
|
22 |
|
|
|
23 |
|
|
# $(slibdir) double quoted to protect it from expansion while building
|
24 |
|
|
# libgcc.mk. We want this delayed until actual install time.
|
25 |
|
|
SHLIBUNWIND_INSTALL = \
|
26 |
|
|
$$(SHELL) $$(srcdir)/mkinstalldirs $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL); \
|
27 |
|
|
$(INSTALL_DATA) $(SHLIB_DIR)/$(SHLIBUNWIND_SONAME) \
|
28 |
|
|
$$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIBUNWIND_SONAME); \
|
29 |
|
|
rm -f $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK); \
|
30 |
|
|
$(LN_S) $(SHLIBUNWIND_SONAME) \
|
31 |
|
|
$$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK)
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.