From b836e5a021239df67e4e5fcc25b671468d2a7041 Mon Sep 17 00:00:00 2001 From: Firas Khalil Khana Date: Sep 30 2024 22:59:18 +0000 Subject: Operate in stoolie mode when called as libtoolize When linking `libtoolize` to `slibtoolize` (which is what most distributions that use `slibtool` are doing) it gets run as `slibtool` instead of `slibtoolize` (which is not the expected behavior). This should allow `slibtool` to operate in `slibtoolize` (or `stoolie` mode) when being called as `libtoolize`. --- diff --git a/src/driver/slbt_amain.c b/src/driver/slbt_amain.c index a9cc118..bdcc3ae 100644 --- a/src/driver/slbt_amain.c +++ b/src/driver/slbt_amain.c @@ -161,6 +161,9 @@ int slbt_main(char ** argv, char ** envp, const struct slbt_fd_ctx * fdctx) else if (!(strcmp(program,"slibtoolize"))) flags |= SLBT_DRIVER_MODE_STOOLIE; + + else if (!(strcmp(program,"libtoolize"))) + flags |= SLBT_DRIVER_MODE_STOOLIE; /* debug */ if (!(strcmp(program,"dlibtool")))