[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] -Wl,-export-dynamic
From: |
Jens Thiele |
Subject: |
Re: [Tinycc-devel] -Wl,-export-dynamic |
Date: |
Wed, 19 Sep 2007 19:54:55 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
On 19 Sep 2007, address@hidden wrote:
> Some programs, like Ruby, want to use -Wl,-export-dynamic. tcc says
> it's an unsupported linker option.
>
> 1. What does it do?
for -Wl, see the gcc man page:
,----
| -Wl,option
| Pass option as an option to the linker. If option contains
| commas, it is split into multiple options at the
| commas.
`----
=> for -export-dynamic see the ld man page:
,----
| --export-dynamic
| When creating a dynamically linked executable, add all
| symbols to the dynamic symbol table. The dynamic sym‐
| bol table is the set of symbols which are visible from
| dynamic objects at run time.
|
| If you do not use this option, the dynamic symbol table will
| normally contain only those symbols which are
| referenced by some dynamic object mentioned in the link.
|
| If you use "dlopen" to load a dynamic object which needs to
| refer back to the symbols defined by the program,
| rather than some other dynamic object, then you will probably
| need to use this option when linking the program
| itself.
| [...]
`----
> 2. How difficult would it be to add support to tcc?
Not sure about that one ;-)
> wget http://ftp.ruby-lang.org/pub/ruby/ruby-1.8.6.tar.gz
> tar zxf ruby-1.8.6.tar.gz
> cd ruby-1.8.6
> export CC=tcc
> ./configure
> make
Assuming there is a windows version of ruby you probably just can
compile without -Wl,--export-dynamic (because windows does not support
it anyway AFAIR).
Or you comile it statically using
./configure --disable-shared
(see also ./configure --help)
Greetings
Jens