aboutsummaryrefslogtreecommitdiff
path: root/config.mk
diff options
context:
space:
mode:
authorParide Legovini <pl@ninthfloor.org>2019-01-10 13:36:09 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2019-01-10 18:13:13 +0100
commit16d98738e74f189b3a00c23390ab5a9a22b056a1 (patch)
tree1dbb663e16fa221fd82506d02e38a989428a0d66 /config.mk
parente23acb9188b7bc7a7cfc418ac45671003abcc341 (diff)
downloadst-patched-16d98738e74f189b3a00c23390ab5a9a22b056a1.tar.bz2
st-patched-16d98738e74f189b3a00c23390ab5a9a22b056a1.tar.xz
st-patched-16d98738e74f189b3a00c23390ab5a9a22b056a1.zip
Let the user specify CPPFLAGS
This complements the work done in d4928ed, allowing the user to specify the preprocessor flags with the CPPFLAGS environment variable. This is useful for example to specify preprocessor macros with -D. CFLAGS could be used instead, but CPPFLAGS is more correct and is expected to be honored in some cases. For example, the helper scripts to build Debian packages make use of CPPFLAGS, but the variable is currently being ignored unless manually appended to CFLAGS.
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.mk b/config.mk
index 64a1da9..5059632 100644
--- a/config.mk
+++ b/config.mk
@@ -21,8 +21,8 @@ LIBS = -L$(X11LIB) -lm -lrt -lX11 -lutil -lXft \
21 `$(PKG_CONFIG) --libs freetype2` 21 `$(PKG_CONFIG) --libs freetype2`
22 22
23# flags 23# flags
24CPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600 24STCPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600
25STCFLAGS = $(INCS) $(CPPFLAGS) $(CFLAGS) 25STCFLAGS = $(INCS) $(STCPPFLAGS) $(CPPFLAGS) $(CFLAGS)
26STLDFLAGS = $(LIBS) $(LDFLAGS) 26STLDFLAGS = $(LIBS) $(LDFLAGS)
27 27
28# OpenBSD: 28# OpenBSD: