summarylogtreecommitdiffstats
path: root/unfuck_makefile.patch
diff options
context:
space:
mode:
authorgraysky2018-04-12 14:10:05 -0400
committergraysky2018-04-12 14:10:05 -0400
commit7353eef9e7c6f58fa0cfd26d97abd5bb7013f49c (patch)
treec89ac2593f44f75b943506eb2cdcae29b1f1e626 /unfuck_makefile.patch
parent0399997d5acf2155a9a78bc1f4a980ceeec879e8 (diff)
downloadaur-7353eef9e7c6f58fa0cfd26d97abd5bb7013f49c.tar.gz
Update to 294b7-4
Diffstat (limited to 'unfuck_makefile.patch')
-rw-r--r--unfuck_makefile.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/unfuck_makefile.patch b/unfuck_makefile.patch
new file mode 100644
index 000000000000..c62a20827412
--- /dev/null
+++ b/unfuck_makefile.patch
@@ -0,0 +1,24 @@
+diff --git a/linux64/makefile b/linux64/makefile
+index 329cb51..88acbc6 100644
+--- a/linux64/makefile
++++ b/linux64/makefile
+@@ -20,15 +20,15 @@
+ # 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 -march=x86-64 -O2 -Wno-unused-result
+ CC = gcc
+-CFLAGS = -I.. -I../gwnum -I/usr/local/include -DX86_64 -O2
++CFLAGS = ${MPRIME_FLAGS}
+
+ CPP = g++
+-CPPFLAGS = -I.. -I../gwnum -DX86_64 -O2
++CPPFLAGS = ${MPRIME_FLAGS}
+
+ 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