From: dahms@ifk20.mach.uni-karlsruhe.de
Subject: Re: Bugs with gcc
24 Jan 1997 22:27:42 -0800
Approved: cygnus.gnu-win32@cygnus.com
Distribution: cygnus
Message-ID: <009AEDD6.B1495B40.8255.cygnus.gnu-win32@ifk20.mach.uni-karlsruhe.de>
Original-To: aurel@xylo.owl.de
Original-CC: gnu-win32@cygnus.com, dahms@ifk20.mach.uni-karlsruhe.de
Original-Sender: owner-gnu-win32@cygnus.com

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 (dahms@ifk20.mach.uni-karlsruhe.de)
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
