freebsd-ports/math/mprime/files/patch-linux_makebsd
Steve Wills a65eeaebad math/mprime: update to 29.4b7
PR:		233261
Submitted by:	rozhuk.im@gmail.com (maintainer)
2018-11-23 13:04:12 +00:00

23 lines
915 B
Text

--- linux/makebsd.orig 2016-10-30 18:42:16 UTC
+++ linux/makebsd
@@ -4,14 +4,14 @@
# Configure hwloc with --enable-static --disable-shared --disable-pci --disable-cuda --disable-gl
#
-CC = gcc
-CFLAGS = -I.. -I../gwnum -I/usr/local/include -O2 -march=i486 -malign-double
+CC = cc
+CFLAGS = -I.. -I../gwnum -I%%LOCALBASE%%/include -O2 -march=i486
-CPP = g++
-CPPFLAGS = -I.. -I../gwnum -I/usr/local/include -O2 -march=i486 -malign-double
+CPP = cc
+CPPFLAGS = -I.. -I../gwnum -I%%LOCALBASE%%/include -O2 -march=i486
-LFLAGS = -Wl,-M -L/usr/local/lib
-LIBS = ../gwnum/gwnum.a ../gwnum/gwnum.ld -lm -lpthread -Wl,-Bstatic /usr/local/lib/libhwloc.a -Wl,-Bstatic /usr/local/lib/libcurl.a -lz -lcompat -lstdc++ -Wl,-Bdynamic -lssl -lgmp
+LFLAGS = -L%%LOCALBASE%%/lib
+LIBS = ../gwnum/gwnum.a ../gwnum/gwnum.ld -lm -lpthread -lcurl -lhwloc -lz -lcompat -lssl -lgmp
FACTOROBJ = factor32.o
OBJS = prime.o menu.o