URI:
       Rename DEBUG variable in Makefile to fix compilation on OpenBSD - croptool - Image cropping tool
  HTML git clone git://lumidify.org/croptool.git (fast, but not encrypted)
  HTML git clone https://lumidify.org/git/croptool.git (encrypted, but very slow)
  HTML git clone git://4kcetb7mo7hj6grozzybxtotsub5bempzo4lirzc3437amof2c2impyd.onion/croptool.git (over tor)
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 66ff003d6616d6669dd0cbe19af25fd882f0b6ba
   DIR parent 2e8f06aa73620939676ad97560dd861f8fd105e0
  HTML Author: lumidify <nobody@lumidify.org>
       Date:   Wed, 22 Jul 2026 20:00:25 +0200
       
       Rename DEBUG variable in Makefile to fix compilation on OpenBSD
       
       Diffstat:
         M Makefile                            |      10 ++++++++--
       
       1 file changed, 8 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/Makefile b/Makefile
       @@ -11,7 +11,13 @@ SRC = ${BIN:=.c}
        MAN1 = ${BIN:=.1}
        MISCFILES = Makefile README CHANGELOG LICENSE TODO common.c common.h
        
       -DEBUG = 0
       +# CROPDEBUG can be set to 1 to enable debugging information.
       +# SANITIZE can be set to 1 to enable -fsanitize=address,undefined
       +
       +# Can't be called simply "DEBUG" because that messes with the
       +# default variables on OpenBSD (${DEBUG} is appended to ${CFLAGS},
       +# which messes everything up when ${DEBUG} is just set to 0 or 1).
       +CROPDEBUG = 0
        SANITIZE = 0
        
        # Configuration options:
       @@ -29,7 +35,7 @@ EXTRA_FLAGS_SANITIZE0 =
        EXTRA_FLAGS_SANITIZE1 = -fsanitize=address,undefined
        
        # Note: Older systems might need `imlib2-config --cflags` and `imlib2-config --libs` instead of pkg-config.
       -CROP_CFLAGS = ${CFLAGS} ${DB_CFLAGS} ${EXTRA_FLAGS_SANITIZE${SANITIZE}} ${EXTRA_CFLAGS_DEBUG${DEBUG}} -Wall -Wextra -pedantic -D_POSIX_C_SOURCE=200809L `pkg-config --cflags x11 imlib2`
       +CROP_CFLAGS = ${CFLAGS} ${DB_CFLAGS} ${EXTRA_FLAGS_SANITIZE${SANITIZE}} ${EXTRA_CFLAGS_DEBUG${CROPDEBUG}} -Wall -Wextra -pedantic -D_POSIX_C_SOURCE=200809L `pkg-config --cflags x11 imlib2`
        CROP_LDFLAGS = ${LDFLAGS} ${DB_LDFLAGS} ${EXTRA_FLAGS_SANITIZE${SANITIZE}} `pkg-config --libs x11 imlib2` -lm
        
        all: ${BIN}