tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] [PATCH] Support -G as an alias to -shared


From: John Scott
Subject: [Tinycc-devel] [PATCH] Support -G as an alias to -shared
Date: Sat, 19 Mar 2022 07:16:47 +0000

Hi,

It's a small change, but as my commits have justifiably been reverted in
the past, I'd like to run this by the list and leave it to someone else
to apply it.

The POSIX Issue 8 drafts specify -G as a portable way to specify
building a shared library, and I think TinyCC should support this. On
the other hand, if you think it's premature to add this, that's fair.

From bde9e15d13d31557b30e8f34de16195361e3d2e5 Mon Sep 17 00:00:00 2001
From: John Scott <jscott@posteo.net>
Date: Sat, 19 Mar 2022 03:10:59 -0400
Subject: [PATCH] Support -G as an alias for -shared.

This is slated for specification in POSIX Issue 8:
https://austingroupbugs.net/view.php?id=1294
---
 libtcc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libtcc.c b/libtcc.c
index b6dbb01..1126a3f 100644
--- a/libtcc.c
+++ b/libtcc.c
@@ -1522,6 +1522,7 @@ static const TCCOption tcc_options[] = {
     { "static", TCC_OPTION_static, 0 },
     { "std", TCC_OPTION_std, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP },
     { "shared", TCC_OPTION_shared, 0 },
+    { "G", TCC_OPTION_shared, 0 },
     { "soname", TCC_OPTION_soname, TCC_OPTION_HAS_ARG },
     { "o", TCC_OPTION_o, TCC_OPTION_HAS_ARG },
     { "pthread", TCC_OPTION_pthread, 0},
-- 
2.34.1

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]