Source: 3d-ascii-viewer-c Version: 1.4.0+git20240503+ds-1 Severity: normal Tags: patch
Hi, 3d-ascii-viewer-c currently hardcodes CC, CFLAGS, and LDFLAGS. Please consider applying the attached patch so that your package uses the default CFLAGS and LDFLAGS set by dpkg-buildflags [1], and that users wishing to do so can compile the program with a compiler other than gcc. Thanks, Emanuele [1] https://manpages.debian.org/unstable/dpkg-dev/dpkg-buildflags.1.en.html
Index: 3d-ascii-viewer-c-1.4.0+git20240503+ds/Makefile =================================================================== --- 3d-ascii-viewer-c-1.4.0+git20240503+ds.orig/Makefile +++ 3d-ascii-viewer-c-1.4.0+git20240503+ds/Makefile @@ -1,9 +1,9 @@ TARGET_EXEC := 3d-ascii-viewer TEMPDIR := tmp -CC := gcc -CFLAGS := -Wall -g -LDFLAGS := -lm -lncurses +CC ?= gcc +CFLAGS := $(CFLAGS) -Wall +LDFLAGS := $(LDFLAGS) -lm -lncurses SRC_DIR := src SRCS := $(shell find $(SRC_DIR) -name '*.c')