Date: Thu, 23 May 2019 11:26:29 +0000 (UTC) From: Steve Wills <swills@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r502338 - in head/math/mprime: . files Message-ID: <201905231126.x4NBQT5T043027@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: swills Date: Thu May 23 11:26:28 2019 New Revision: 502338 URL: https://svnweb.freebsd.org/changeset/ports/502338 Log: math/mprime: fix i386 build Bump PORTREVISION due to CFLAGS change PR: 237844 Submitted by: rozhuk.im@gmail.com (maintainer) Added: head/math/mprime/files/patch-gwnum_makemsys (contents, props changed) head/math/mprime/files/patch-linux_makebsd (contents, props changed) Modified: head/math/mprime/Makefile (contents, props changed) Modified: head/math/mprime/Makefile ============================================================================== --- head/math/mprime/Makefile Thu May 23 11:08:04 2019 (r502337) +++ head/math/mprime/Makefile Thu May 23 11:26:28 2019 (r502338) @@ -3,6 +3,7 @@ PORTNAME= mprime PORTVERSION= 29.8b3 +PORTREVISION= 1 CATEGORIES= math benchmarks net MASTER_SITES= http://www.mersenne.org/ftp_root/gimps/ \ ftp://mersenne.org/gimps/ Added: head/math/mprime/files/patch-gwnum_makemsys ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/mprime/files/patch-gwnum_makemsys Thu May 23 11:26:28 2019 (r502338) @@ -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 $< Added: head/math/mprime/files/patch-linux_makebsd ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/mprime/files/patch-linux_makebsd Thu May 23 11:26:28 2019 (r502338) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905231126.x4NBQT5T043027>