--- src/Makefile.orig	2026-05-25 09:26:50 UTC
+++ src/Makefile
@@ -69,7 +69,7 @@ endif
 	STD+=-std=c99
 endif
 
-PREFIX?=/usr/local
+PREFIX:=$(PREFIX)
 INSTALL_BIN=$(PREFIX)/bin
 INSTALL=install
 PKG_CONFIG?=pkg-config
@@ -171,5 +171,4 @@ endif
 endif
-DEBUG=-g -ggdb
 
 # Linux ARM32 needs -latomic at linking time
 ifneq (,$(findstring armv,$(uname_M)))
@@ -234,2 +233,2 @@
 else
-ifeq ($(uname_S),FreeBSD)
+ifneq (,$(filter FreeBSD MidnightBSD,$(uname_S)))
