]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/pa/t-hpux-shlib
re PR tree-optimization/50902 (intVar/dinternal.cc ICEs at -O2 -ftree-vectorize)
[thirdparty/gcc.git] / gcc / config / pa / t-hpux-shlib
CommitLineData
ad41bd84
JM
1# Copyright (C) 2001, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2#
3# This file is part of GCC.
4#
5# GCC is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 3, or (at your option)
8# any later version.
9#
10# GCC is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with GCC; see the file COPYING3. If not see
17# <http://www.gnu.org/licenses/>.
18
e4761274
JL
19# Build a shared libgcc library.
20SHLIB_EXT = .sl
4720d5ca
JDA
21SHLIB_NAME = @shlib_base_name@$(SHLIB_EXT)
22SHLIB_SOVERSION = 1
23SHLIB_SONAME = @shlib_base_name@.$(SHLIB_SOVERSION)
e4761274 24SHLIB_OBJS = @shlib_objs@
4e8d0554
RS
25SHLIB_DIR = @multilib_dir@
26SHLIB_SLIBDIR_QUAL = @shlib_slibdir_qual@
e4761274
JL
27
28SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
43eb8947 29 -Wl,+h -Wl,$(SHLIB_SONAME) \
03be9d6b 30 -o $(SHLIB_DIR)/$(SHLIB_NAME).tmp @multilib_flags@ $(SHLIB_OBJS) && \
4e8d0554
RS
31 rm -f $(SHLIB_DIR)/$(SHLIB_SONAME) && \
32 if [ -f $(SHLIB_DIR)/$(SHLIB_NAME) ]; then \
33 mv -f $(SHLIB_DIR)/$(SHLIB_NAME) $(SHLIB_DIR)/$(SHLIB_NAME).backup; \
3b415018 34 else true; fi && \
4e8d0554
RS
35 mv $(SHLIB_DIR)/$(SHLIB_NAME).tmp $(SHLIB_DIR)/$(SHLIB_NAME) && \
36 $(LN_S) $(SHLIB_NAME) $(SHLIB_DIR)/$(SHLIB_SONAME)
e4761274 37
e4761274
JL
38# $(slibdir) double quoted to protect it from expansion while building
39# libgcc.mk. We want this delayed until actual install time.
f51d6cb4
ZW
40SHLIB_INSTALL = \
41 $$(mkinstalldirs) $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL); \
42 $(INSTALL_DATA) -m 555 $(SHLIB_DIR)/$(SHLIB_NAME) \
4e8d0554
RS
43 $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SONAME); \
44 rm -f $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_NAME); \
45 $(LN_S) $(SHLIB_SONAME) \
46 $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_NAME)