83dad10cd4
* Makefile.in (NM_FOR_TARGET): New. (libgcc.mk): Pass SHLIB_MKMAP, SHLIB_MAPFILES. (libgcc.a, stmp-multilib): Pass NM_FOR_TARGET. * mklibgcc.in: If SHLIB_MKMAP, build libgcc.map. Depend the shared library build on that and EXTRA_MULTILIB_PARTS. * mkmap-flat.awk: New file. * mkmap-symver.awk: New file. * libgcc-std.ver: New file. * config/libgcc-glibc.ver: New file. * config/ia64/libgcc-ia64.ver: New file. * config/t-linux (SHLIB_MKMAP, SHLIB_MAPFILES): New. (SHLIB_LINK): Add --version-script. * config/ia64/t-ia64 (SHLIB_MAPFILES): Add libgcc-ia64.ver. * config/mips/t-iris6 (SHLIB_MKMAP, SHLIB_MAPFILES): New. * config/sparc/t-sol2 (SHLIB_MKMAP, SHLIB_MAPFILES): New. (SHLIB_LINK): Add -M. From-SVN: r36746
24 lines
708 B
Plaintext
24 lines
708 B
Plaintext
# Don't run fixproto
|
|
STMP_FIXPROTO =
|
|
|
|
# Don't install "assert.h" in gcc. We use the one in glibc.
|
|
INSTALL_ASSERT_H =
|
|
|
|
# Compile crtbeginS.o and crtendS.o with pic.
|
|
CRTSTUFF_T_CFLAGS_S = -fPIC
|
|
# Compile libgcc2.a with pic.
|
|
TARGET_LIBGCC2_CFLAGS = -fPIC
|
|
# Build a shared libgcc library.
|
|
SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
|
|
-Wl,--soname=@shlib_base_name@.so.0 \
|
|
-Wl,--version-script=libgcc.map
|
|
SHLIB_LIBS = -lc
|
|
SHLIB_MKMAP = $(srcdir)/mkmap-symver.awk
|
|
SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver $(srcdir)/config/libgcc-glibc.ver
|
|
|
|
# Do not build libgcc1. Let gcc generate those functions. The GNU/Linux
|
|
# C library can handle them.
|
|
LIBGCC1 =
|
|
CROSS_LIBGCC1 =
|
|
LIBGCC1_TEST =
|