From f6775906d136bbeacf3cd45443c080be2dd1f2e9 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 18 Jun 2024 17:03:22 -0400 Subject: build: Rename CONFIG to CONFFLAGS --- build/header.mk | 2 +- configure | 2 +- src/parse.c | 12 ++++++------ src/prelude.h | 2 +- src/version.c | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/build/header.mk b/build/header.mk index 75fda41..16a25ca 100644 --- a/build/header.mk +++ b/build/header.mk @@ -63,7 +63,7 @@ gen/config.h: ${PKG_HEADERS} ${HEADERS} @printf '#endif // BFS_CONFIG_H\n' >>$@ @cat ${.ALLSRC:%=%.log} >gen/config.log ${VCAT} $@ - @printf '%s' "$$CONFIG" | build/embed.sh >gen/config.i + @printf '%s' "$$CONFFLAGS" | build/embed.sh >gen/confflags.i @printf '%s' "$$XCC" | build/embed.sh >gen/cc.i @printf '%s' "$$XCPPFLAGS" | build/embed.sh >gen/cppflags.i @printf '%s' "$$XCFLAGS" | build/embed.sh >gen/cflags.i diff --git a/configure b/configure index bed7df2..8cdb7d8 100755 --- a/configure +++ b/configure @@ -83,7 +83,7 @@ nproc() { } # Save the ./configure command line for bfs --version -export CONFIG="$0 $*" +export CONFFLAGS="$*" # Default to `make` MAKE="${MAKE-make}" diff --git a/src/parse.c b/src/parse.c index 9035344..86ce72c 100644 --- a/src/parse.c +++ b/src/parse.c @@ -2961,12 +2961,12 @@ static struct bfs_expr *parse_version(struct bfs_parser *parser, int arg1, int a printf("Copyright © Tavian Barnes and the bfs contributors\n"); printf("No rights reserved (https://opensource.org/license/0BSD)\n\n"); - printf("CONFIG := %s\n", bfs_config); - printf("CC := %s\n", bfs_cc); - printf("CPPFLAGS := %s\n", bfs_cppflags); - printf("CFLAGS := %s\n", bfs_cflags); - printf("LDFLAGS := %s\n", bfs_ldflags); - printf("LDLIBS := %s\n", bfs_ldlibs); + printf("CONFFLAGS := %s\n", bfs_confflags); + printf("CC := %s\n", bfs_cc); + printf("CPPFLAGS := %s\n", bfs_cppflags); + printf("CFLAGS := %s\n", bfs_cflags); + printf("LDFLAGS := %s\n", bfs_ldflags); + printf("LDLIBS := %s\n", bfs_ldlibs); printf("\n%s\n", BFS_HOMEPAGE); diff --git a/src/prelude.h b/src/prelude.h index bca16b2..34ce803 100644 --- a/src/prelude.h +++ b/src/prelude.h @@ -40,7 +40,7 @@ // when the version number changes extern const char bfs_version[]; -extern const char bfs_config[]; +extern const char bfs_confflags[]; extern const char bfs_cc[]; extern const char bfs_cppflags[]; extern const char bfs_cflags[]; diff --git a/src/version.c b/src/version.c index 9e5c82f..8383350 100644 --- a/src/version.c +++ b/src/version.c @@ -7,8 +7,8 @@ const char bfs_version[] = { #include "version.i" }; -const char bfs_config[] = { -#include "config.i" +const char bfs_confflags[] = { +#include "confflags.i" }; const char bfs_cc[] = { -- cgit v1.2.3