summaryrefslogtreecommitdiff
path: root/src/psnames
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2015-01-12 11:26:30 +0100
committerWerner Lemberg <wl@gnu.org>2015-01-12 11:26:30 +0100
commit36d03c9f583f4c4b2ad2870784e2fe50814820c9 (patch)
treebf6d3c79734b08ae66e00de3de19576b7f434b58 /src/psnames
parent2af74c9b87d4a35f019d54ad89c9ef1c2208f7bb (diff)
downloadfreetype2-36d03c9f583f4c4b2ad2870784e2fe50814820c9.tar.gz
Fix Savannah bug #43976.
Assure that FreeType's internal include directories are found before `CPPFLAGS' (which might be set by the user in the environment), and `CPPFLAGS' before `CFLAGS'. * builds/freetype.mk (FT_CFLAGS): Don't add `INCLUDE_FLAGS'. (FT_COMPILE): Make this a special variable for compiling only the files handled in `freetype.mk'. (.c.$O): Removed, unused. * src/*/rules.mk (*_COMPILE): Fix order of include directories.
Diffstat (limited to 'src/psnames')
-rw-r--r--src/psnames/rules.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/psnames/rules.mk b/src/psnames/rules.mk
index f321de2d6..278f6596d 100644
--- a/src/psnames/rules.mk
+++ b/src/psnames/rules.mk
@@ -20,7 +20,10 @@ PSNAMES_DIR := $(SRC_DIR)/psnames
# compilation flags for the driver
#
-PSNAMES_COMPILE := $(FT_COMPILE) $I$(subst /,$(COMPILER_SEP),$(PSNAMES_DIR))
+PSNAMES_COMPILE := $(CC) $(ANSIFLAGS) \
+ $I$(subst /,$(COMPILER_SEP),$(PSNAMES_DIR)) \
+ $(INCLUDE_FLAGS) \
+ $(FT_CFLAGS)
# PSNames driver sources (i.e., C files)