Add dynamic export support for tcc

Reuben Thomas <[email protected]>
Newsgroups gmane.comp.gnu.libtool.patches
Message-ID <CAOnWdoibsEa4QZyHK4QPKqNnPk5Cqm2SiNUvqZ0X=_p5BzrHhg@mail.gmail.com>
The attached patch adds support for tcc's -rdynamic, the equivalent of GNU
ld's -Wl,--export-dynamic.

-- 
http://rrt.sc3d.org
0001-Add-dynamic-export-support-for-tcc.patch (text/x-diff, 721 B)
From 33d504492e36cb875d15c12515a2ab6b160931f6 Mon Sep 17 00:00:00 2001
From: Reuben Thomas <[email protected]>
Date: Thu, 31 Jul 2014 16:53:58 +0100
Subject: [PATCH] Add dynamic export support for tcc

---
 m4/libtool.m4 | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 91b460e..6c6b2f2 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -5015,6 +5015,9 @@ _LT_EOF
         fi
 
 	case $cc_basename in
+        tcc*)
+	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
+	  ;;
 	xlf* | bgf* | bgxlf* | mpixlf*)
 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 	  _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
-- 
1.9.1
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.