summaryrefslogtreecommitdiffstats
path: root/build/exports.mk
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-05-21 15:53:52 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-05-21 15:53:52 -0400
commitdd8e3b8b3e2d55c586e80e62d88719909bd8a568 (patch)
tree2a1de46f9e5b557a90e673e656f531340d0db962 /build/exports.mk
parentf9498086969d917a85452560173a0d9db3604c32 (diff)
downloadbfs-dd8e3b8b3e2d55c586e80e62d88719909bd8a568.tar.xz
build: Allow flags.mk to override command line variables
Previously, during something like ./configure LDFLAGS=..., any additions to LDFLAGS from the generated makefiles were ignored. I had thought that sub-make invocations would allow those variables to be overridden, but that is not the behaviour of make. So instead, set _LDFLAGS etc. in the generated files so that they don't conflict.
Diffstat (limited to 'build/exports.mk')
-rw-r--r--build/exports.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/build/exports.mk b/build/exports.mk
index ed19134..913a1aa 100644
--- a/build/exports.mk
+++ b/build/exports.mk
@@ -12,9 +12,9 @@ export XMKDIR=${MKDIR}
export XPKG_CONFIG=${PKG_CONFIG}
export XRM=${RM}
-export XCPPFLAGS=${CPPFLAGS}
-export XCFLAGS=${CFLAGS}
-export XLDFLAGS=${LDFLAGS}
-export XLDLIBS=${LDLIBS}
+export XCPPFLAGS=${_CPPFLAGS}
+export XCFLAGS=${_CFLAGS}
+export XLDFLAGS=${_LDFLAGS}
+export XLDLIBS=${_LDLIBS}
export XNOLIBS=${NOLIBS}