1 |
272 |
jeremybenn |
HOST_LIBGCC2_CFLAGS = -fpic -mieee -DNO_FPSCR_VALUES
|
2 |
|
|
|
3 |
|
|
# Override t-slibgcc-elf-ver to export some libgcc symbols with
|
4 |
|
|
# the symbol versions that glibc used, and hide some lib1func
|
5 |
|
|
# routines which should not be called via PLT. We have to create
|
6 |
|
|
# the list from scratch.
|
7 |
|
|
SHLIB_MAPFILES = \
|
8 |
|
|
$(gcc_srcdir)/libgcc-std.ver \
|
9 |
|
|
$(gcc_srcdir)/config/sh/libgcc-excl.ver \
|
10 |
|
|
$(gcc_srcdir)/config/sh/libgcc-glibc.ver
|
11 |
|
|
|
12 |
|
|
# Override SHLIB_LINK and SHLIB_INSTALL to use linker script
|
13 |
|
|
# libgcc_s.so.
|
14 |
|
|
SHLIB_LINK = $(CC) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
|
15 |
|
|
-Wl,--soname=@shlib_base_name@.so.1 \
|
16 |
|
|
-Wl,--version-script=@shlib_map_file@ \
|
17 |
|
|
-o @multilib_dir@/@shlib_base_name@.so.1.tmp @multilib_flags@ \
|
18 |
|
|
@shlib_objs@ -lc && \
|
19 |
|
|
rm -f @multilib_dir@/@shlib_base_name@.so && \
|
20 |
|
|
if [ -f @multilib_dir@/@shlib_base_name@.so.1 ]; then \
|
21 |
|
|
mv -f @multilib_dir@/@shlib_base_name@.so.1 \
|
22 |
|
|
@multilib_dir@/@shlib_base_name@.so.1.backup; \
|
23 |
|
|
else true; fi && \
|
24 |
|
|
mv @multilib_dir@/@shlib_base_name@.so.1.tmp \
|
25 |
|
|
@multilib_dir@/@shlib_base_name@.so.1 && \
|
26 |
|
|
(echo "/* GNU ld script"; \
|
27 |
|
|
echo " Use the shared library, but some functions are only in"; \
|
28 |
|
|
echo " the static library. */"; \
|
29 |
|
|
echo "GROUP ( @shlib_base_name@.so.1 libgcc.a )" \
|
30 |
|
|
) > @multilib_dir@/@shlib_base_name@.so
|
31 |
|
|
SHLIB_INSTALL = \
|
32 |
|
|
$(mkinstalldirs) $(DESTDIR)$(slibdir)@shlib_slibdir_qual@; \
|
33 |
|
|
$(INSTALL_DATA) @multilib_dir@/@shlib_base_name@.so.1 \
|
34 |
|
|
$(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@shlib_base_name@.so.1; \
|
35 |
|
|
rm -f $(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@shlib_base_name@.so; \
|
36 |
|
|
$(INSTALL_DATA) @multilib_dir@/@shlib_base_name@.so \
|
37 |
|
|
$(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@shlib_base_name@.so
|