$OpenBSD: patch-Makefile,v 1.2 2020/06/04 07:50:07 bentley Exp $

Index: Makefile
--- Makefile.orig
+++ Makefile
@@ -89,7 +89,7 @@ OPEN_DIALOG = OpenDialog/cocoa.m
 endif
 
 # These must come before the -Wno- flags
-WARNINGS += -Werror -Wall -Wno-unknown-warning -Wno-unknown-warning-option
+WARNINGS += -Wall -Wno-unknown-warning -Wno-unknown-warning-option
 WARNINGS += -Wno-nonnull -Wno-unused-result -Wno-strict-aliasing -Wno-multichar -Wno-int-in-bool-context
 
 # Only add this flag if the compiler supports it
@@ -120,7 +120,7 @@ LDFLAGS += -lmsvcrt -lcomdlg32 -luser32 -lSDL2main -Wl
 SDL_LDFLAGS := -lSDL2
 GL_LDFLAGS := -lopengl32
 else
-LDFLAGS += -lc -lm -ldl
+LDFLAGS += -lc -lm
 endif
 
 ifeq ($(PLATFORM),Darwin)
