From: Iain Young - G7III (nad@uni-hohenheim.de)
Date: Thu Jun 27 2002 - 22:03:02 EEST
On Thu, Jun 27, 2002 at 11:51:05AM -0700, terry wrote:
> cc a symlink to gcc (gcc version egcs-2.91.66). i was unable to find
> reference to "-s" and "-lm" in the manpage. what do these flags imply.
-l pulls in libraries, or more accurately tells the linker to pull in
libraries. -lm is telling it to pull the maths library in, IIRC.
Checking the manpage for ld, -s "Omits all symbol information from the
output file". Basically this means it does what strip(1) does before
creating your executable, saving you running strip(1)
When you run gcc, your code actually gets passed thru the preprocessor
first (cpp), then gcc proper, then the linker (ld) to create the
executable.
All the Best
Iain.
-
To unsubscribe from this list: send the line "unsubscribe linux-hams" in
the body of a message to osvnkix.tmhhnvju@ipnet.sk
More majordomo info at http://vger.kernel.org/majordomo-info.html
This archive was generated by hypermail 2b30 : Thu Jun 27 2002 - 22:32:44 EEST