]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/gcc/config/rs6000/t-linux64
This commit was generated by cvs2svn to compensate for changes in r162735,
[FreeBSD/FreeBSD.git] / contrib / gcc / config / rs6000 / t-linux64
1
2 #rs6000/t-linux64
3
4 LIB2FUNCS_EXTRA = tramp.S $(srcdir)/config/rs6000/ppc64-fp.c
5 LIB2FUNCS_STATIC_EXTRA = eabi.S $(srcdir)/config/rs6000/darwin-ldouble.c
6 LIB2FUNCS_SHARED_EXTRA = $(srcdir)/config/rs6000/darwin-ldouble-shared.c
7
8 TARGET_LIBGCC2_CFLAGS = -mno-minimal-toc -fPIC -specs=bispecs
9
10 SHLIB_MAPFILES += $(srcdir)/config/rs6000/libgcc-ppc64.ver
11
12 MULTILIB_OPTIONS        = m64/m32 msoft-float
13 MULTILIB_DIRNAMES       = 64 32 nof
14 MULTILIB_EXTRA_OPTS     = fPIC mstrict-align
15 MULTILIB_EXCEPTIONS     = m64/msoft-float
16 MULTILIB_EXCLUSIONS     = m64/!m32/msoft-float
17 MULTILIB_OSDIRNAMES     = ../lib64 ../lib nof
18 MULTILIB_MATCHES        = $(MULTILIB_MATCHES_FLOAT)
19
20 # We want fine grained libraries, so use the new code to build the
21 # floating point emulation libraries.
22 # fp-bit is only to be used by 32-bit multilibs
23 FPBIT = fp-bit32.c
24 DPBIT = dp-bit32.c
25
26 dp-bit32.c: $(srcdir)/config/fp-bit.c
27         ( echo '#ifndef __powerpc64__'; \
28           cat $(srcdir)/config/fp-bit.c; \
29           echo '#endif' ) > dp-bit32.c
30
31 fp-bit32.c: $(srcdir)/config/fp-bit.c
32         ( echo '#ifndef __powerpc64__'; \
33           echo '#define FLOAT'; \
34           cat $(srcdir)/config/fp-bit.c; \
35           echo '#endif' ) > fp-bit32.c
36
37 # Hack to use -mlong-double-128 just for compiling 64 bit libgcc
38 mklibgcc: bispecs
39
40 bispecs: specs
41         if [ x`$(GCC_FOR_TARGET) -print-multi-os-directory` = x../lib ]; then \
42           sed -e '/cc1_options/{ n; s/$$/ %{m64:-mlong-double-128}/; }' < specs > $@; \
43         else \
44           sed -e '/cc1_options/{ n; s/$$/ %{!m32:-mlong-double-128}/; }' < specs > $@; \
45         fi