On Wed, 2007-08-29 at 16:53 +0200, Chiara Sandionigi wrote:
Hi!
I have a problem with cctools, in particular the problem regards the
options of ld. I'm compiling files created for Linux distributions,
so I have a problem regarding the passage from GNU binutils to cctools.
The error is the following:
[ 2/98] * mkshared : lib/systemc/libsystemc.a -> _build_/default/lib/
systemc/libsystemc.dylib
/usr/bin/ld: unknown flag: -E
collect2: ld returned 1 exit status
I have the same problem with flags --whole-archive and --no-whole-
archive.
Does somebody know which are the equivalent options with cctools?
Thanks for any help
There are man pages for gcc and ld that you could consult...
However, -E is --export-dynamic, which is not necessary, symbols are
exported by default.
There's no equivalent for --whole-archive and --no-whole-archive (I did
file a bug on it - it was marked as a duplicate). There is an option
-all_load, but it is not very useful as it will cause all members of all
static archives to be loaded. You will probably have to extract all the
objects and use them directly.
Peter