$OpenBSD: patch-Makefile,v 1.4 2019/03/20 14:06:21 sthen Exp $
Index: Makefile
--- Makefile.orig
+++ Makefile
@@ -37,10 +37,11 @@ CPPFLAGS += -DVERSION=\"$(VERSION)\"
 
 # Enable this for multithreading.
 CFLAGS += -pthread
+LDFLAGS += -pthread
 CPPFLAGS += -DTHREADS
 
 # Optimizing for speed. Comment this out for distribution builds
-CFLAGS += -march=native
+#CFLAGS += -march=native
 
 # To enable debugging of the Yacc grammar, uncomment the following line
 #CPPFLAGS += -DYYDEBUG=1
@@ -74,7 +75,6 @@ CPPFLAGS+=-Drestrict=__restrict__
 # CFLAGS += -pg
 # Warning: Using -O3 has been seen to cause core dumps on repositories with
 # very long revision names - some bounds check gets optimized away. Don't do that.
-CFLAGS += -O2
 # If your toolchain supports link time optimization this is a cheap speedup
 # CFLAGS += -flto
 # CFLAGS += -g
@@ -145,10 +145,9 @@ install-bin: cvs-fast-export cvssync cvsconvert
 	$(INSTALL) -d "$(target)/bin"
 	$(INSTALL) $^ "$(target)/bin"
 install-man: man
-	$(INSTALL) -d "$(target)/share/man/man1"
-	$(INSTALL) -m 644 cvs-fast-export.1 "$(target)/share/man/man1"
-	$(INSTALL) -m 644 cvssync.1 "$(target)/share/man/man1"
-	$(INSTALL) -m 644 cvsconvert.1 "$(target)/share/man/man1"
+	$(INSTALL) -m 644 cvs-fast-export.1 "$(target)/man/man1"
+	$(INSTALL) -m 644 cvssync.1 "$(target)/man/man1"
+	$(INSTALL) -m 644 cvsconvert.1 "$(target)/man/man1"
 uninstall: uninstall-man uninstall-bin
 uninstall-man:
 	cd $(target)/share/man/man1/ && rm -f cvs-fast-export.1 cvssync.1 cvsconvert.1
