On Tuesday, August 1, 2017, 10:31:15 AM PDT, Ray Foulkes 
<ray.foul...@shay-mwa.com> wrote:

> I am totally baffled as to what cc -o is doing there. Surely it should be 
> ld??> and then the -o is for "output" i.e. create "edit" as an executable.
The above command is correct.  On the GNU Linux and BSD systems, usuallyone has 
the compiler call the linker using '-o', because calling ld directly isactually 
pretty complicated and easy to get wrong.  Using the compiler to call thelinker 
is easier and less error prone.

This is a question about the compiler, 'gcc' or whatever, and not 'make' 
specifically.
-Mike

_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to