summarylogtreecommitdiffstats
path: root/0001-makefile-fix-build-for-Arch-Linux.patch
diff options
context:
space:
mode:
Diffstat (limited to '0001-makefile-fix-build-for-Arch-Linux.patch')
-rw-r--r--0001-makefile-fix-build-for-Arch-Linux.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/0001-makefile-fix-build-for-Arch-Linux.patch b/0001-makefile-fix-build-for-Arch-Linux.patch
new file mode 100644
index 000000000000..1c141b85ba73
--- /dev/null
+++ b/0001-makefile-fix-build-for-Arch-Linux.patch
@@ -0,0 +1,37 @@
+From 3ee9ae9b0c8efdb356e53a7d36373e906de02f9d Mon Sep 17 00:00:00 2001
+From: graysky <graysky@archlinux.us>
+Date: Tue, 30 Nov 2021 06:27:15 -0500
+Subject: [PATCH] makefile: fix build for Arch Linux
+
+---
+ linux64/makefile | 8 +++++---
+ 1 file changed, 5 insertions(+), 3 deletions(-)
+
+diff --git a/linux64/makefile b/linux64/makefile
+index f73ba4f..4ba2517 100644
+--- a/linux64/makefile
++++ b/linux64/makefile
+@@ -18,15 +18,17 @@
+ # LFLAGS = -Wl,-M
+ # LIBS = ../gwnum/gwnum.a ../gwnum/gwnum.ld -lm -lpthread -Wl,-Bstatic $(shell pkg-config --static --libs libhwloc) -Wl,-Bstatic $(shell pkg-config --static --libs libcurl) -lstdc++ -Wl,-Bdynamic -ldl
+
++MPRIME_FLAGS= -I.. -I../gwnum -DX86_64 -O2 -Wno-unused-result -march=x86-64 -DPORT=8
++
+ CC = gcc
+-CFLAGS = -I.. -I../gwnum -I/usr/local/include -std=gnu99 -DX86_64 -Wno-unused-result -O2 -DPORT=8
++CFLAGS = ${MPRIME_FLAGS} -std=gnu99
+
+ CPP = g++
+-CPPFLAGS = -I.. -I../gwnum -I../../boost_1_76_0 -DX86_64 -std=c++11 -O2 -DPORT=8
++CPPFLAGS = ${MPRIME_FLAGS} -std=c++11
+
+ LFLAGS = -Wl,-M -Wl,-L/usr/local/lib
+ #LIBS = ../gwnum/gwnum.a ../gwnum/gwnum.ld -lm -lpthread -Wl,-Bstatic -lhwloc -Wl,-Bstatic -lcurl -Wl,-Bdynamic -lrt -lstdc++ -lz -lxml2 -ldl -lgmp
+-LIBS = ../gwnum/gwnum.a ../gwnum/gwnum.ld -lm -lpthread -Wl,-Bstatic -lhwloc -Wl,-Bstatic -lcurl -Wl,-Bdynamic -lrt -lstdc++ -ldl -lgmp
++LIBS = ../gwnum/gwnum.a ../gwnum/gwnum.ld -lm -lpthread $(shell pkg-config --libs libcurl) -lstdc++ $(shell pkg-config --static --libs hwloc) -lgmp
+
+ FACTOROBJ = factor64.o
+ LINUXOBJS = prime.o menu.o cJSON.o ecm.o pair.o pm1prob.o
+--
+2.34.1
+