commit 185588620736c053fc395ab9178e79b8a0260e75
parent 224f4cdf6ae30c1c48cde31bba53f2e5c3350219
Author: wh1tepearl <wh1tepearl@gmail.com>
Date: Mon, 2 Mar 2026 18:09:27 +0000
Remove -O3 -march=native from default config.mk because they were slowing down compilation times to much and add -scrdir flag to vxwm to know from where vxwm was compiled
Diffstat:
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/config.mk b/config.mk
@@ -26,9 +26,9 @@ INCS = -I${X11INC} -I${FREETYPEINC}
LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS}
# flags
-CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
+CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700L -DVERSION=\"${VERSION}\" -DSRCDIR=\"${CURDIR}\" ${XINERAMAFLAGS}
#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
-CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -O3 -march=native ${INCS} ${CPPFLAGS}
+CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations ${INCS} ${CPPFLAGS}
LDFLAGS = ${LIBS}
# Solaris
diff --git a/vxwm.c b/vxwm.c
@@ -2705,8 +2705,10 @@ main(int argc, char *argv[])
{
if (argc == 2 && !strcmp("-v", argv[1]))
die("vxwm - "VERSION);
+ if (argc == 2 && !strcmp("-srcdir", argv[1]))
+ die("vxwm was compiled from - "SRCDIR);
else if (argc != 1)
- die("usage: vxwm [-v]");
+ die("usage: vxwm [-v] [-srcdir]");
if (!setlocale(LC_CTYPE, "") || !XSupportsLocale())
fputs("warning: no locale support\n", stderr);
if (!(dpy = XOpenDisplay(NULL)))