freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2-demos] master 8d32948: * Makefile: Append CPPFLAGS to CFLAGS


From: Werner Lemberg
Subject: [freetype2-demos] master 8d32948: * Makefile: Append CPPFLAGS to CFLAGS so that they work in `graph`.
Date: Tue, 21 Jun 2022 13:05:32 -0400 (EDT)

branch: master
commit 8d329489e995de1937fbcc532dc87eb3f3157373
Author: Hugh McMaster <hugh.mcmaster@outlook.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>

    * Makefile: Append CPPFLAGS to CFLAGS so that they work in `graph`.
---
 Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index a9e7e7e..daead73 100644
--- a/Makefile
+++ b/Makefile
@@ -125,6 +125,10 @@ else
     SRC_DIR := $(TOP_DIR_2)/src
   endif
 
+  # Append any system-defined CPPFLAGS (e.g. hardening flags) to CFLAGS.
+  #
+  CFLAGS += $(CPPFLAGS)
+
   ifeq ($(PLATFORM),unixdev)
     # `FT_DEMO_CFLAGS` comes from FreeType's `configure` script (via
     # `builds/unix/unix-cc.mk`), holding additional flags to compile the
@@ -143,7 +147,6 @@ else
 
   COMPILE = $(CC) $(ANSIFLAGS) \
                   $(INCLUDES:%=$I%) \
-                  $(CPPFLAGS) \
                   $(CFLAGS) \
                   $(FT_DEMO_CFLAGS)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]