blob: 0cf552d584b381be993dd542c418f15982830ad2 [file] [log] [blame]
This file is part of MXE.
See index.html for further information.
diff -ur libf2c.orig/makefile.u libf2c/makefile.u
--- libf2c.orig/makefile.u 2018-08-04 14:39:43.605201400 -0400
+++ libf2c/makefile.u 2018-08-04 14:57:35.227563800 -0400
@@ -20,7 +20,7 @@ CFLAGS = -O
# compile, then strip unnecessary symbols
.c.o:
$(CC) -c -DSkip_f2c_Undefs $(CFLAGS) $*.c
- ld -r -x -o $*.xxx $*.o
+ $(LD) -r -x -o $*.xxx $*.o
mv $*.xxx $*.o
## Under Solaris (and other systems that do not understand ld -x),
## omit -x in the ld line above.
@@ -74,8 +74,8 @@ all: libf2c.a
$(OFILES): f2c.h signal1.h sysdep1.h
libf2c.a: $(OFILES)
- ar r libf2c.a $?
- -ranlib libf2c.a
+ $(AR) r libf2c.a $?
+ -$(RANLIB) libf2c.a
## Shared-library variant: the following rule works on Linux
## systems. Details are system-dependent. Under Linux, -fPIC
@@ -128,7 +128,7 @@ sysdep1.h: sysdep1.h0
install: libf2c.a
cp libf2c.a $(LIBDIR)
- -ranlib $(LIBDIR)/libf2c.a
+ -$(RANLIB) $(LIBDIR)/libf2c.a
clean:
rm -f libf2c.a *.o arith.h signal1.h sysdep1.h
@@ -187,12 +187,6 @@ xwsne.o: fio.h
xwsne.o: lio.h
xwsne.o: fmt.h
-arith.h: arithchk.c
- $(CC) $(CFLAGS) -DNO_FPINIT arithchk.c -lm ||\
- $(CC) -DNO_LONG_LONG $(CFLAGS) -DNO_FPINIT arithchk.c -lm
- ./a.exe >arith.h
- rm -f a.exe arithchk.o
-
check:
xsum Notice README abort_.c arithchk.c backspac.c c_abs.c c_cos.c \
c_div.c c_exp.c c_log.c c_sin.c c_sqrt.c cabs.c close.c comptry.bat \
diff -urN tmp-libf2c.orig/arith.h tmp-libf2c/arith.h
--- tmp-libf2c.orig/arith.h 1970-01-01 10:00:00.000000000 +1000
+++ tmp-libf2c/arith.h 2012-05-04 01:16:16.000000000 +1000
@@ -0,0 +1,5 @@
+#define IEEE_8087
+#define Arith_Kind_ASL 1
+#define Double_Align
+#define QNaN0 0x0
+#define QNaN1 0xfff80000
+