summarylogtreecommitdiffstats
path: root/unfuck_makefile.patch
diff options
context:
space:
mode:
Diffstat (limited to 'unfuck_makefile.patch')
-rw-r--r--unfuck_makefile.patch15
1 files changed, 9 insertions, 6 deletions
diff --git a/unfuck_makefile.patch b/unfuck_makefile.patch
index 904c9becd3ea..ce270c31beb6 100644
--- a/unfuck_makefile.patch
+++ b/unfuck_makefile.patch
@@ -1,21 +1,24 @@
---- a/linux64/makefile 2019-08-18 15:22:12.000000000 -0400
-+++ b/linux64/makefile 2019-09-05 17:13:54.045672695 -0400
-@@ -20,15 +20,16 @@
+--- a/linux64/makefile 2020-08-10 20:33:02.000000000 -0400
++++ b/linux64/makefile 2020-08-11 07:07:32.836699309 -0400
+@@ -20,15 +20,20 @@
# 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
++MPRIME_FLAGS= -I.. -I../gwnum -DX86_64 -O2 -Wno-unused-result -march=x86-64
++
CC = gcc
-CFLAGS = -I.. -I../gwnum -I/usr/local/include -DX86_64 -Wno-unused-result -O2
++#CFLAGS = -I.. -I../gwnum -I/usr/local/include -DX86_64 -Wno-unused-result -O2
+CFLAGS = ${MPRIME_FLAGS}
CPP = g++
-CPPFLAGS = -I.. -I../gwnum -DX86_64 -O2
++#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 -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