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

(usagi-users 00460) link static to libinet6.a



Hi:

Is it possible to compile a program with the libinet6.a linked
statically ?

I was bored, and it did occurr to me try to compile one
program that I am developing with the following flags:

gcc -o test test.c -Wl,-Bstatic -linet6.a 

and all happens to be correct, but when I execute it, i received
a "segmentation fault".

If i compile it without the "-Wl,-Bstatic", all is ok.

Good "golden week" and "working day" for all.