From: Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org>
Date: Tue, 6 Aug 2019 13:46:48 +0200
Subject: support_custom_cflags

===================================================================
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 640cafb..2605c33 100644
--- a/Makefile
+++ b/Makefile
@@ -26,8 +26,8 @@ endif
 ifdef FT2_LIB
 FT2_FLAG = -DHAVE_FREETYPE
 endif
-CFLAGS = $(CINCLUDES) -fPIC -W -Wall -Wno-unused \
-	$(JPEG_FLAG) $(FT2_FLAG) $(SAFETY_FLAG)
+override CFLAGS += $(CINCLUDES) -fPIC -W -Wall -Wno-unused \
+		   $(JPEG_FLAG) $(FT2_FLAG) $(SAFETY_FLAG)
 
 OCAMLCFLAGS=-labels -unsafe
 OCAMLOPTFLAGS=-labels -inline 2
