TIP: Click on subject to list as thread! ANSI
echo: fidosoft.husky
to: Richard Menedetter
from: Wilfred van Velzen
date: 2016-11-08 16:41:50
subject: Re: HPTZIP compile issue

Hi Richard,

On 2016-11-08 08:58:22, Nicholas Boel wrote to you:

 RM>> I tried to compile HPTZIP today.
 RM>> Got this error:
 RM>> gcc -shared -Wl -s hptzip.o ioapi.o unzip.o zip.o -L/usr/local/lib -o
 RM>> libhptzip.so
 RM>> gcc: error: unrecognized command line option -Wl

 RM>> When I delete the -Wl it links.

 NB> While it links, does the program still do what it is intended to do?

 NB> I wonder if changing -Wl to -Wall would do anything productive either? I
 NB> only reply because I ran into the exact same error yesterday, but did not
 NB> test further as I had to put my efforts elsewhere that that time.

In my gcc man page:

       -Wl,option
           Pass option as an option to the linker.  If option contains
commas, it is split into multiple options at the commas.  You
           can use this syntax to pass an argument to the option.  For
example, -Wl,-Map,output.map passes -Map output.map to the
           linker.  When using the GNU linker, you can also get the same
effect with -Wl,-Map=output.map.

And as -s is a linker option, it should probably we written as: -Wl,-s

But -s is basically what the 'strip' program does. So it doesn't hurt to to
leave them both out, and do a manual strip on the generated executable file
afterwards...

Bye, Wilfred.

--- FMail-W32 1.73.2.29-B20161107
* Origin: FMail development HQ (2:280/464)
SEEN-BY: 3/50 103/705 154/10 203/0 227/51 230/0 240/1661 5832 249/303 261/38
SEEN-BY: 280/464 5003 292/854 310/31 423/120 633/267 280 640/384 712/550 848
SEEN-BY: 770/1 2320/100 5075/35
@PATH: 280/464 712/848 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.