summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-03-31 21:33:18 +0000
committermidipix <writeonce@midipix.org>2024-03-31 21:33:18 +0000
commit7368417ce05a129c43abff2b492fd5ad1c305da5 (patch)
tree3b1071f717c44394e6f5ce31abe90a6adba7263f /src
parent16eff71774fd37f1873d72ad51722892b8a5e3a9 (diff)
downloadslibtool-7368417ce05a129c43abff2b492fd5ad1c305da5.tar.bz2
slibtool-7368417ce05a129c43abff2b492fd5ad1c305da5.tar.xz
driver: disallow epxlicit --heuristics file name alongside a --mkvars switch.
Diffstat (limited to 'src')
-rw-r--r--src/driver/slbt_driver_ctx.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index de1288e..e24942e 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -871,6 +871,14 @@ int slbt_lib_get_driver_ctx(
"--disable-static",
"--disable-shared");
+ if (lconf && mkvars)
+ return slbt_driver_fail_incompatible_args(
+ fdctx->fderr,
+ cctx.drvflags,
+ meta,program,
+ "--heuristics=<cfgfile>",
+ "--mkvars=<makefile>");
+
/* -static? */
if (cmdstatic) {
cctx.drvflags |= SLBT_DRIVER_STATIC;