2000-10-09 01:20:18 +02:00
|
|
|
# Build a shared libgcc library with the Solaris linker.
|
|
|
|
|
|
|
|
SHLIB_EXT = .so
|
2002-05-09 23:01:55 +02:00
|
|
|
SHLIB_SOLINK = @shlib_base_name@.so
|
|
|
|
SHLIB_SONAME = @shlib_so_name@.so.1
|
|
|
|
SHLIB_NAME = @shlib_dir@@shlib_so_name@.so.1
|
2001-06-13 16:26:03 +02:00
|
|
|
SHLIB_MAP = @shlib_map_file@
|
|
|
|
SHLIB_OBJS = @shlib_objs@
|
2002-05-09 23:01:55 +02:00
|
|
|
SHLIB_SLIBDIR_QUAL = @shlib_slibdir_qual@
|
2001-06-13 16:26:03 +02:00
|
|
|
|
2000-10-09 01:20:18 +02:00
|
|
|
SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
|
2001-06-13 16:26:03 +02:00
|
|
|
-Wl,-h,$(SHLIB_SONAME) -Wl,-z,text -Wl,-z,defs \
|
|
|
|
-Wl,-M,$(SHLIB_MAP) -o $(SHLIB_NAME) \
|
|
|
|
@multilib_flags@ $(SHLIB_OBJS) -lc && \
|
2002-05-09 23:01:55 +02:00
|
|
|
rm -f $(SHLIB_SOLINK) && \
|
|
|
|
$(LN_S) $(SHLIB_NAME) $(SHLIB_SOLINK)
|
2001-01-07 22:55:10 +01:00
|
|
|
# $(slibdir) double quoted to protect it from expansion while building
|
|
|
|
# libgcc.mk. We want this delayed until actual install time.
|
2002-05-09 23:01:55 +02:00
|
|
|
SHLIB_INSTALL = \
|
2004-02-08 00:45:23 +01:00
|
|
|
$$(mkinstalldirs) $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL); \
|
2002-05-09 23:01:55 +02:00
|
|
|
$(INSTALL_DATA) $(SHLIB_NAME) \
|
Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
* Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
(install-gcc-tooldir, install-cpp, installdirs,
install-common, install-driver, install-info, install-man,
install-headers, install-include-dir, install-headers-tar,
install-headers-cpio, install-headers-cp, install-mkheaders,
install-collect2, uninstall): Prepend $(DESTDIR) to
destination paths in all (un)installation commands.
(install-driver): Rewrite $(LN) commands to support DESTDIR
with "ln" as well as with "ln -s".
(installdirs): Simply use mkinstalldirs.
(install-libgcc, install-multilib): Also pass DESTDIR.
* mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
installation destination variable ldir.
* config/alpha/t-osf4, config/arm/t-netbsd,
config/ia64/t-hpux, config/mips/t-iris5-6,
config/pa/t-hpux-shlib, config/rs6000/t-aix43,
config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
in the definition of SHLIB_INSTALL.
* config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
$(libsubdir) in the installation commands.
From-SVN: r61076
2003-01-09 09:00:41 +01:00
|
|
|
$$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SONAME); \
|
|
|
|
rm -f $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK); \
|
2002-05-09 23:01:55 +02:00
|
|
|
$(LN_S) $(SHLIB_SONAME) \
|
Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
* Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
(install-gcc-tooldir, install-cpp, installdirs,
install-common, install-driver, install-info, install-man,
install-headers, install-include-dir, install-headers-tar,
install-headers-cpio, install-headers-cp, install-mkheaders,
install-collect2, uninstall): Prepend $(DESTDIR) to
destination paths in all (un)installation commands.
(install-driver): Rewrite $(LN) commands to support DESTDIR
with "ln" as well as with "ln -s".
(installdirs): Simply use mkinstalldirs.
(install-libgcc, install-multilib): Also pass DESTDIR.
* mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
installation destination variable ldir.
* config/alpha/t-osf4, config/arm/t-netbsd,
config/ia64/t-hpux, config/mips/t-iris5-6,
config/pa/t-hpux-shlib, config/rs6000/t-aix43,
config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
in the definition of SHLIB_INSTALL.
* config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
$(libsubdir) in the installation commands.
From-SVN: r61076
2003-01-09 09:00:41 +01:00
|
|
|
$$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK)
|
2000-10-09 01:20:18 +02:00
|
|
|
SHLIB_MKMAP = $(srcdir)/mkmap-symver.awk
|
|
|
|
SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver
|