File: support_custom_cflags.patch

package info (click to toggle)
gd4o 1.0~alpha5-9
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,212 kB
  • sloc: xml: 1,618; ml: 1,136; ansic: 781; makefile: 85
file content (24 lines) | stat: -rw-r--r-- 712 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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