Subject: Add support for slimcc

From: [email-masked]
Date: Mon, 11 Aug 2025 14:49:51 +0300

Hi. This patch to libtool.m4 adds support for the slimcc C compiler. Thanks! --Arnold
-----------------------
diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 79a2451e..6feaf559 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -4737,6 +4737,12 @@ m4_if([$1], [CXX], [
 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 	;;
+      slimcc*)
+	# SlimCC - from https://github.com/fuhsnn/slimcc
+	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+	;;
       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
         # Portland Group compilers (*not* the Pentium gcc compiler,
 	# which looks to be a dead project)