samba 2.2.5-pre and solaris 9

Juergen Hasch Hasch at t-online.de
Fri Jun 7 14:44:01 GMT 2002


Hi Don,

Am Freitag, 7. Juni 2002 23:27 schrieb Don Koch:
> jerry at samba.org said:
> > Do we still need to pass the -Wl flag to Sun's ld?
>
> Hasch at t-online.de said:
> > Yes, because we are calling GCC and not ld directly:
> >   @$(CC) $(FLAGS) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS)
>
> Well, no, you don't.  -Wl,-xxx is used to pass the -xxx option to the
> linker being used (e.g., the aforementioned -Wl,-E to pass the -E option
> to gnu ld).  If you aren't passing anything to the sun linker, -Wl
> shouldn't be used.

you are right, I confused things. We only need to set DYNEXP="Wl,-E" when we 
use GCC and GNU LD. All other cases under Solaris doesn't need a DYNEXP at 
all.

Or is anybody using Sun's cc with GNU LD ?

...Juergen





More information about the samba-technical mailing list