$OpenBSD: patch-GNUmakefile,v 1.2 2018/07/17 07:56:44 espie Exp $

Index: GNUmakefile
--- GNUmakefile.orig
+++ GNUmakefile
@@ -161,7 +161,6 @@ engine_objs := \
     textfont.cpp \
     smalltextfont.cpp \
     kplib.cpp \
-    lz4.c \
     osd.cpp \
     pragmas.cpp \
     scriptfile.cpp \
@@ -581,7 +580,7 @@ ifeq ($(SUBPLATFORM),LINUX)
 endif
 
 ifeq ($(PLATFORM),BSD)
-    LIBS += -lFLAC -lvorbisfile -lvorbis -logg -lexecinfo
+    LIBS += -lFLAC -lvorbisfile -lvorbis -logg -lexecinfo -llz4
 endif
 
 ifeq ($(PLATFORM),DARWIN)
@@ -755,7 +754,7 @@ endif
 
 #### Final setup
 
-COMPILERFLAGS += -I$(engine_inc) -I$(mact_inc) -I$(audiolib_inc) -I$(enet_inc)
+COMPILERFLAGS := -I$(engine_inc) -I$(mact_inc) -I$(audiolib_inc) -I$(enet_inc) $(COMPILERFLAGS)
 
 
 ##### Recipes
