* "gcc -pipe" and ld
@ 2005-09-19 18:36 Erik Leunissen
2005-09-19 19:05 ` John Love-Jensen
0 siblings, 1 reply; 2+ messages in thread
From: Erik Leunissen @ 2005-09-19 18:36 UTC (permalink / raw)
To: gcc-help
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
==============
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: "gcc -pipe" and ld
2005-09-19 18:36 "gcc -pipe" and ld Erik Leunissen
@ 2005-09-19 19:05 ` John Love-Jensen
0 siblings, 0 replies; 2+ messages in thread
From: John Love-Jensen @ 2005-09-19 19:05 UTC (permalink / raw)
To: Erik Leunissen, MSX to GCC
Hi Erik,
Try adding the -v (verbose) flag...
gcc -v -pipe -o myLib.so myLib.c -lm
HTH,
--Eljay
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-09-19 19:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-19 18:36 "gcc -pipe" and ld Erik Leunissen
2005-09-19 19:05 ` John Love-Jensen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).