summaryrefslogtreecommitdiff
path: root/gcc/config/t-linux
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-10-08 23:20:18 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-10-08 23:20:18 +0000
commit95126477945260e657fdda3244201b4d0b0d70ef (patch)
treed14e895aa0f643740cf9f9a9fc9ac99f2e746d48 /gcc/config/t-linux
parente3fff6f226714d15ecd144e99828cbdd25bc2bb5 (diff)
downloadgcc-95126477945260e657fdda3244201b4d0b0d70ef.tar.gz
* Makefile.in (libgcc.mk): Pass SHLIB_EXT, not SHLIB_LIBS.
* configure.in (sparc*-*-solaris*): Use t-slibgcc{,-sld}. * mklibgcc.in: Consider SHLIB_LINK the entire shlib build command. Use SHLIB_EXT. * config/t-linux (SHLIB_EXT): New. (SHLIB_LINK): Use the entire build command, with substitutions. (SHLIB_LIBS): Remove. * config/alpha/t-osf4: Likewise. * config/mips/t-iris6: Likewise. * config/sparc/t-sol2: Likewise, but move shlib stuff... * config/sparc/t-slibgcc-sld: ...here. * config/sparc/t-slibgcc: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36792 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/t-linux')
-rw-r--r--gcc/config/t-linux5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/config/t-linux b/gcc/config/t-linux
index 858faa9619c..b66cf56e663 100644
--- a/gcc/config/t-linux
+++ b/gcc/config/t-linux
@@ -9,10 +9,11 @@ CRTSTUFF_T_CFLAGS_S = -fPIC
# Compile libgcc2.a with pic.
TARGET_LIBGCC2_CFLAGS = -fPIC
# Build a shared libgcc library.
+SHLIB_EXT = .so
SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
-Wl,--soname=@shlib_base_name@.so.0 \
- -Wl,--version-script=libgcc.map
-SHLIB_LIBS = -lc
+ -Wl,--version-script=@shlib_map_file@ \
+ -o @shlib_base_name@.so @multilib_flags@ @shlib_objs@ -lc
SHLIB_MKMAP = $(srcdir)/mkmap-symver.awk
SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver $(srcdir)/config/libgcc-glibc.ver