--- linux/makebsd.orig 2019-04-23 03:05:22 UTC +++ linux/makebsd @@ -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