90961eff1b
* 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
30 lines
1.2 KiB
Plaintext
30 lines
1.2 KiB
Plaintext
# Build a shared libgcc library for ELF with symbol versioning
|
|
# with the GNU linker.
|
|
|
|
SHLIB_EXT = .so
|
|
SHLIB_SOLINK = @shlib_base_name@.so
|
|
SHLIB_SONAME = @shlib_so_name@.so.1
|
|
SHLIB_NAME = @shlib_dir@@shlib_so_name@.so.1
|
|
SHLIB_MAP = @shlib_map_file@
|
|
SHLIB_OBJS = @shlib_objs@
|
|
SHLIB_SLIBDIR_QUAL = @shlib_slibdir_qual@
|
|
SHLIB_LC = -lc
|
|
|
|
SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
|
|
-Wl,--soname=$(SHLIB_SONAME) \
|
|
-Wl,--version-script=$(SHLIB_MAP) \
|
|
-o $(SHLIB_NAME) @multilib_flags@ $(SHLIB_OBJS) $(SHLIB_LC) && \
|
|
rm -f $(SHLIB_SOLINK) && \
|
|
$(LN_S) $(SHLIB_NAME) $(SHLIB_SOLINK)
|
|
# $(slibdir) double quoted to protect it from expansion while building
|
|
# libgcc.mk. We want this delayed until actual install time.
|
|
SHLIB_INSTALL = \
|
|
$$(SHELL) $$(srcdir)/mkinstalldirs $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL); \
|
|
$(INSTALL_DATA) $(SHLIB_NAME) \
|
|
$$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SONAME); \
|
|
rm -f $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK); \
|
|
$(LN_S) $(SHLIB_SONAME) \
|
|
$$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK)
|
|
SHLIB_MKMAP = $(srcdir)/mkmap-symver.awk
|
|
SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver
|