C++ linked statically?
Tue May 26 18:38:00 GMT 2009
2009/5/26 Dimitry Andric <firstname.lastname@example.org>:
> On 2009-05-26 18:34, Piotr Borys wrote:
>> LDFLAGS = -L$(STAGING_DIR)/arm-unknown-linux-uclibcgnueabi/lib
>> --static -lstdc++ -lc
> Try appending to LDFLAGS:
> -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
Well... it seems it built it dynamically:
$ ./parking: can't load library 'libstdc++.so.6'
the resulting binary is much greater than normal file, but somewhat
smaller than built with -static.
I saw somewhere some suggestion with this -W option, too (although
with other params) - where can I find some help on its use?
Piotr "utak3r" Borys
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc