4 LIB2FUNCS_EXTRA = tramp.S $(srcdir)/config/rs6000/ppc64-fp.c \
5 $(srcdir)/config/rs6000/darwin-ldouble.c
7 TARGET_LIBGCC2_CFLAGS += -mno-minimal-toc
9 # On Debian, Ubuntu and other derivative distributions, the 32bit libraries
10 # are found in /lib32 and /usr/lib32, /lib64 and /usr/lib64 are symlinks to
11 # /lib and /usr/lib, while other distributions install libraries into /lib64
12 # and /usr/lib64. The LSB does not enforce the use of /lib64 and /usr/lib64,
13 # it doesn't tell anything about the 32bit libraries on those systems. Set
14 # MULTILIB_OSDIRNAMES according to what is found on the target.
16 MULTILIB_OPTIONS = m64/m32 msoft-float
17 MULTILIB_DIRNAMES = 64 32 nof
18 MULTILIB_EXTRA_OPTS = fPIC mstrict-align
19 MULTILIB_EXCEPTIONS = m64/msoft-float
20 MULTILIB_EXCLUSIONS = m64/!m32/msoft-float
21 MULTILIB_OSDIRNAMES = ../lib64 $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib) nof
22 MULTILIB_MATCHES = $(MULTILIB_MATCHES_FLOAT)
24 # We want fine grained libraries, so use the new code to build the
25 # floating point emulation libraries.
26 # fp-bit is only to be used by 32-bit multilibs
30 dp-bit32.c: $(srcdir)/config/fp-bit.c
31 ( echo '#ifndef __powerpc64__'; \
32 cat $(srcdir)/config/fp-bit.c; \
33 echo '#endif' ) > dp-bit32.c
35 fp-bit32.c: $(srcdir)/config/fp-bit.c
36 ( echo '#ifndef __powerpc64__'; \
37 echo '#define FLOAT'; \
38 cat $(srcdir)/config/fp-bit.c; \
39 echo '#endif' ) > fp-bit32.c