master: Make main() a weak symbol for linkable runtime

snuglas via Sbcl-commits <[email protected]>
Newsgroups gmane.lisp.steel-bank.cvs
Message-ID <[email protected]>
The branch "master" has been updated in SBCL:
       via  15976f48328e594d6e4df22c4ae305934744aa72 (commit)
      from  8e6ef6fb951369fa974d20c779066e83cff7da7e (commit)

- Log -----------------------------------------------------------------
commit 15976f48328e594d6e4df22c4ae305934744aa72
Author: Seokjun Lee <[email protected]>
Date:   Fri Apr 10 07:28:17 2026 -0400

    Make main() a weak symbol for linkable runtime
---
 src/runtime/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/runtime/main.c b/src/runtime/main.c
index 11a98c903..6c6ec2ee1 100644
--- a/src/runtime/main.c
+++ b/src/runtime/main.c
@@ -1,7 +1,7 @@
 #include "interr.h"
 #include <stdio.h>
 
-int main(int argc, char *argv[], char *envp[])
+int __attribute__((weak)) main(int argc, char *argv[], char *envp[])
 {
     extern int initialize_lisp(int argc, char *argv[], char *envp[]);
 #ifdef TRACE_MMAP_SYSCALLS

-----------------------------------------------------------------------


hooks/post-receive
-- 
SBCL
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.