[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[MiNT] Patch for Fdlibm in CVS
All this does is make it so that the Makefile will target 68000 / 68020-60
and adds the 5475 target. Some other little hacks in there for the way it
compiles, but nothing big.
If this is OK, I will then build a new RPM for SpareMiNT and call this
version 6.0, as the previous was 5.3
Keith
Index: Makefile.in
===================================================================
RCS file: /mint/fdlibm/Makefile.in,v
retrieving revision 1.5
diff -r1.5 Makefile.in
9c9,13
< CPU=-m$(word 1, $(subst ., ,$(CPU-FPU)))
---
> ifeq ($(CPU-FPU),5475.soft-float)
> CPU=-mcpu=$(word 1, $(subst ., ,$(CPU-FPU)))
> else
> CPU=-m$(word 1, $(subst ., ,$(CPU-FPU)))
> endif
12c16,19
< CFLAGS = -pipe -O2 -fomit-frame-pointer $(CPU) $(FPU)
---
> #CFLAGS = -pipe -O2 -fomit-frame-pointer $(CPU) $(FPU)
> # Remove explicit FPU parameter, let the compiler defines deal with this for
> # CPU target
> CFLAGS = -pipe -O2 -fomit-frame-pointer $(CPU)
58,59c65,67
< 68000.soft-float
<
---
> 68000.soft-float \
> 68020-60.68881 \
> 5475.soft-float
138,139c146,147
< $(srcdir)/mkinstalldirs $(libdir)/libm020/libm881; \
< cp 68020-60.68881/libm.a $(libdir)/libm020/libm881/libm.a; \
---
> $(srcdir)/mkinstalldirs $(libdir)/m68020-60; \
> cp 68020-60.68881/libm.a $(libdir)/m68020-60/libm.a; \
164a173,176
> if [ -d 5475.soft-float ] ; then \
> $(srcdir)/mkinstalldirs $(libdir)/m5475; \
> cp 5475.soft-float/libm.a $(libdir)/m5475/libm.a; \
> else true; fi