aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoe <rbo@gmx.us>2025-10-02 11:11:33 +0200
committerjoe <rbo@gmx.us>2025-10-02 11:11:33 +0200
commit440058e70b52251c6d7d6ce6710b83a02f7bc484 (patch)
tree94596869ee22ee857d6ddc582a54abb9b99cd84f
parentup (diff)
downloadst-440058e70b52251c6d7d6ce6710b83a02f7bc484.tar.gz
st-440058e70b52251c6d7d6ce6710b83a02f7bc484.tar.bz2
st-440058e70b52251c6d7d6ce6710b83a02f7bc484.tar.xz
st-440058e70b52251c6d7d6ce6710b83a02f7bc484.tar.zst
st-440058e70b52251c6d7d6ce6710b83a02f7bc484.zip
up
-rw-r--r--config.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/config.mk b/config.mk
index 39ea4da..e727e14 100644
--- a/config.mk
+++ b/config.mk
@@ -20,8 +20,13 @@ LIBS = -L$(X11LIB) -lm -lrt -lX11 -lutil -lXft \
`$(PKG_CONFIG) --libs fontconfig` \
`$(PKG_CONFIG) --libs freetype2`
+HOSTNAME = $(shell /usr/bin/hostname -s)
+
# flags
+CFLAGS = -march=alderlake -Os -pipe
+ifeq (${HOSTNAME}, mother)
CFLAGS = -march=haswell -Os -pipe
+endif
STCPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600
STCFLAGS = $(INCS) $(STCPPFLAGS) $(CPPFLAGS) $(CFLAGS)
STLDFLAGS = $(LIBS) $(LDFLAGS)