1 # We need multilib support for HPUX's ILP32 & LP64 modes.
4 INSTALL_LIBGCC = install-multilib
6 MULTILIB_OPTIONS = milp32/mlp64
7 MULTILIB_DIRNAMES = hpux32 hpux64
10 # Support routines for HP-UX 128 bit floats.
12 LIB2FUNCS_EXTRA=quadlib.c
14 quadlib.c: $(srcdir)/config/ia64/quadlib.c
15 cat $(srcdir)/config/ia64/quadlib.c > quadlib.c
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.
23 # We do not want to include the EH stuff that linux uses, we want to use
24 # the HP-UX libunwind library.
29 # Must include -lunwind in the link, so that libgcc_s.so has the necessary
30 # DT_NEEDED entry for libunwind.
31 SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
32 -Wl,+h,@shlib_base_name@.so.0 \
33 -o @shlib_base_name@.so @multilib_flags@ @shlib_objs@ -lunwind -lc && \
34 rm -f @shlib_base_name@.so.0 && \
35 $(LN_S) @shlib_base_name@.so @shlib_base_name@.so.0
36 # $(slibdir) double quoted to protect it from expansion while building
37 # libgcc.mk. We want this delayed until actual install time.
38 SHLIB_INSTALL = $(INSTALL_DATA) @shlib_base_name@.so $$(DESTDIR)$$(slibdir)/@shlib_base_name@.so.0; \
39 rm -f $$(DESTDIR)$$(slibdir)/@shlib_base_name@.so; \
40 $(LN_S) @shlib_base_name@.so.0 $$(DESTDIR)$$(slibdir)/@shlib_base_name@.so; \
41 chmod +x $$(DESTDIR)$$(slibdir)/@shlib_base_name@.so
43 SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk