OSDN Git Service

* config/ia64/ia64.c (ia64_expand_builtin, case IA64_BUILTIN_BSP):
[pf3gnuchains/gcc-fork.git] / gcc / config / ia64 / t-hpux
1 # We need multilib support for HPUX's ILP32 & LP64 modes.
2
3 LIBGCC = stmp-multilib
4 INSTALL_LIBGCC = install-multilib
5
6 MULTILIB_OPTIONS = milp32/mlp64
7 MULTILIB_DIRNAMES = hpux32 hpux64
8 MULTILIB_MATCHES =
9
10 # Support routines for HP-UX 128 bit floats.
11
12 LIB2FUNCS_EXTRA=quadlib.c
13
14 quadlib.c: $(srcdir)/config/ia64/quadlib.c
15         cat $(srcdir)/config/ia64/quadlib.c > quadlib.c
16
17 # We get an undefined main when building a cross compiler because our
18 # linkspec has "-u main" and we want that for linking but it makes
19 # LIBGCC1_TEST fail because it uses -nostdlib -nostartup.
20
21 LIBGCC1_TEST =
22
23 # Don't run fix-headers.  HP-UX headers are standards conformant
24 # and don't need to be fixed up in this way.
25 # If we remove this (and run fix-headers) we should define FIXPROTO_DEFINES
26 # and also fix the definition of putenv in sys-protos.h (const char not char).
27
28 STMP_FIXPROTO =
29
30 # We do not want to include the EH stuff that linux uses, we want to use
31 # the HP-UX libunwind library.
32
33 LIB2ADDEH =
34
35 SHLIB_EXT = .so
36 SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
37         -Wl,+h,@shlib_base_name@.so.0 \
38         -o @shlib_base_name@.so @multilib_flags@ @shlib_objs@ -lc && \
39         rm -f @shlib_base_name@.so.0 && \
40         $(LN_S) @shlib_base_name@.so @shlib_base_name@.so.0
41 # $(slibdir) double quoted to protect it from expansion while building
42 # libgcc.mk.  We want this delayed until actual install time.
43 SHLIB_INSTALL = $(INSTALL_DATA) @shlib_base_name@.so $$(DESTDIR)$$(slibdir)/@shlib_base_name@.so.0; \
44         rm -f $$(DESTDIR)$$(slibdir)/@shlib_base_name@.so; \
45         $(LN_S) @shlib_base_name@.so.0 $$(DESTDIR)$$(slibdir)/@shlib_base_name@.so; \
46         chmod +x $$(DESTDIR)$$(slibdir)/@shlib_base_name@.so
47
48 SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk