Hi Don, Am Freitag, 7. Juni 2002 23:27 schrieb Don Koch: > [EMAIL PROTECTED] said: > > Do we still need to pass the -Wl flag to Sun's ld? > > [EMAIL PROTECTED] 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
