Index: math/mprime/files/patch-gwnum_makemsys =================================================================== --- math/mprime/files/patch-gwnum_makemsys (nonexistent) +++ math/mprime/files/patch-gwnum_makemsys (working copy) @@ -0,0 +1,27 @@ +--- gwnum/makemsys.orig 2019-04-22 22:05:20.000000000 +0300 ++++ gwnum/makemsys 2019-05-14 23:48:06.059075000 +0300 +@@ -1,13 +1,13 @@ + # Makefile for Mingw/msys gwnum library + # + +-CC = gcc +-CFLAGS = -I.. -I../sqlite-amalgamation-3180000 -O2 -march=i486 -malign-double ++CC ?= cc ++CFLAGS += -I.. -I../sqlite-amalgamation-3180000 -O2 -march=i486 + +-CPP = g++ +-CPPFLAGS = -I.. -I../qd -O2 -march=i486 -malign-double ++CXX ?= cc ++CXXFLAGS += -I.. -I../qd -O2 -march=i486 + +-AR = ar ++AR ?= ar + + LINUXOBJS = cpuid.o gwnum.o gwtables.o gwthread.o gwini.o gwbench.o gwutil.o gwdbldbl.o giants.o ecmstag1.o + +@@ -29,4 +29,4 @@ + $(CC) $(CFLAGS) -c $< + + .cpp.o: +- $(CPP) $(CPPFLAGS) -c $< ++ $(CXX) $(CXXFLAGS) -c $< Index: math/mprime/files/patch-linux_makebsd =================================================================== --- math/mprime/files/patch-linux_makebsd (nonexistent) +++ math/mprime/files/patch-linux_makebsd (working copy) @@ -0,0 +1,20 @@ +--- linux/makebsd.bak 2019-04-22 22:05:22.000000000 +0300 ++++ linux/makebsd 2019-05-14 23:41:22.010249000 +0300 +@@ -7,13 +7,13 @@ + # + + CC ?= cc +-CFLAGS += -I.. -I../gwnum -I$(LOCALBASE)/include -O2 -march=i486 -malign-double ++CFLAGS += -I.. -I../gwnum -I$(LOCALBASE)/include -O2 -march=i486 + + CXX ?= cc +-CXXFLAGS += -I.. -I../gwnum -I$(LOCALBASE)/include -O2 -march=i486 -malign-double ++CXXFLAGS += -I.. -I../gwnum -I$(LOCALBASE)/include -O2 -march=i486 + +-LDFLAGS += -fpie -Wl,-M -L$(LOCALBASE)/lib +-LIBS += ../gwnum/gwnum.a ../gwnum/gwnum.ld -lm -lpthread -Wl,-Bstatic -lhwloc -Wl,-Bstatic -lcurl -lz -lcompat -lstdc++ -Wl,-Bdynamic -lssl -lgmp ++LDFLAGS += -fpie -L$(LOCALBASE)/lib -Wl,-M ++LIBS += ../gwnum/gwnum.a ../gwnum/gwnum.ld -lm -lpthread -lhwloc -lcurl -lstdc++ -lcompat -lgmp + + FACTOROBJ = factor32.o + OBJS = prime.o menu.o