Subject: strange ld behavior (bad argv passing?) while building Mozilla 1.0-RC
To: None <current-users@netbsd.org>
From: =?iso-8859-2?Q?Micha=B3?= Pasternak <doc@lublin.t1.pl>
List: current-users
Date: 04/20/2002 10:51:32
Hello,
mozilla 1.0-RC seems to patch with patches from 0.9.9 pkgsrc.
But:

======= making ./libldap50.so
/usr/bin/ld -shared -Wl,-soname,libldap50.so -Wl,-R/usr/X11R6/lib/mozilla
-o libldap50.so ./abandon.o ./add.o ./bind.o ./cache.o ./charray.o
[bunch of .o files]
/usr/bin/ld: unrecognized option '-shared'

doc@pr93 {90} ::> ld --help|grep shared
  -shared, -Bshareable        Create a shared library
doc@pr93 {91} ::> ld --version
GNU ld 2.11.2

And, when I tried to run ld without that -shared option:

pr93# /usr/bin/ld -Wl,-soname,libldap50.so -Wl,-R/usr/X11R6/lib/mozilla -o libld
[...]
/usr/bin/ld: unrecognized option '/usr/bin/ld'
/usr/bin/ld: use the --help option for usage information


It seems like a bug in ld to me. I'll cvsup to the today's -current now, but
please, have a look at it.
-- 
/* Micha³ Pasternak, http://pasternak.w.lub.pl, +48606570000 */