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 # 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).
30 # We do not want to include the EH stuff that linux uses, we want to use
31 # the HP-UX libunwind library.
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
48 SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk