This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
"gcc -pipe" and ld
- From: Erik Leunissen <e dot leunissen at hccnet dot nl>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 19 Sep 2005 20:35:57 +0200
- Subject: "gcc -pipe" and ld
L.S.
When I build a shared object (or executable) by doing:
gcc -pipe -o myLib.so myLib.c -lm
How does the linker get the object code for myLib?
a. from a temporary file, saved by the compiler?
b. on stdin from a pipe that connects to the compilers stdout?
c. ???
The reason I ask is that I expected case b. However, when reading the
documentation of ld, there is no mention whatsoever of using stdin.
So I am unsure.
Can anybody cure my uncertainty?
Thanks in advance,
Erik Leunissen
==============