$OpenBSD: patch-Makefile,v 1.1 2020/12/09 10:28:02 sthen Exp $

Index: Makefile
--- Makefile.orig
+++ Makefile
@@ -15,19 +15,19 @@ CXXFLAGS += -O3 -Wall
 
 # project-specific flags
 EXTRA_CXXFLAGS += $(shell gimptool-2.0 --cflags && pkg-config --cflags lensfun exiv2)
-LDFLAGS += $(shell gimptool-2.0 --libs && pkg-config --libs lensfun exiv2) -lstdc++
+LDFLAGS += $(shell gimptool-2.0 --libs && pkg-config --libs lensfun exiv2)
 
 
 # set some system dependent options
-SYS := $(shell gcc -dumpmachine)
+SYS := $(shell ${CC} -dumpmachine)
 ifneq (, $(findstring mingw, $(SYS)))
 	ifeq ($(DEBUG), 0)
 		LDFLAGS += -Wl,-subsystem,windows
 	endif
 else
 	# comment to disable OpenMP
-	CXXFLAGS += -fopenmp
-	LDFLAGS += -fopenmp
+	#CXXFLAGS += -fopenmp
+	#LDFLAGS += -fopenmp
 endif
 
 
