Subject: Re: Bugs with gcc
From: [email-masked]

24 Jan 1997 22:27:42 -0800
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
Original-To: [email-masked]
Original-CC: [email-masked], [email-masked]
Original-Sender: [email-masked]

Hi, you wrote:

: > : firstly, compiling/linking with the -s flag to g++ causes an executable
: > : to be produced, that will not run, - apparently a non NT executable.

: > What do you expect -s to do, please?
: 
: The -s flag is passed to ld and is defined on the man-page for ld
: on any UNIX system. So there must be a problem with ld when
: stripping a executable. -s means stripping the executable.
: It is done directly by ld (no call of strip)
: 
:         Aurel Balmosan

Summarizing what several kindly people said and some more info of mine:
There is *no* -s in my man page for gcc/g++ on unix (v2.7)!
Using -Wl,-s would have put me on the right track, as -Wl is documented.
man ld on hp-ux shows no -S, and on DECunix/Alpha ld -S is something else.
GNU ld --help on cygwin explains -S as stripping debug symbols.
Indeed all 3 have -s!

Bye, Heribert ([email-masked])
-
For help on using this list, send a message to
"[email-masked]" with one line of text: "help".