Mail Archives: djgpp/1997/12/23/18:45:37
John M. Aldrich schrieb:
>
> The '-(' and '-)' options are what control the library grouping. The
> only problem is that I don't know how you could get RHIDE to recognize
> and construct a correct command line for the linker using this syntax.
At first you have to change the RHIDE link spec (the next version will
have this changed) by adding the following to your global/local
rhide.env file:
RHIDE_COMPILE_LINK=$(RHIDE_LD) $(RHIDE_LIBDIRS) $(C_EXTRA_FLAGS) -o \
$(OUTFILE)\$(OBJFILES) $(LIBRARIES) $(RHIDE_LIBS) $(LDFLAGS)
$(RHIDE_LDFLAGS)
NOTE: This should be written on _ONE_ line _WITHOUT_ the \
and then you can put in the "Options/Linker options"
-( -lfoo1 -lfoo2 -)
> P.S.: Is there a difference in functionality between gcc's '-Xlinker
> OPTION' and '-Wl,OPTION' switches, except for the latter's splitting of
> parameters at commas?
There should be no difference in functionality, but for me it is betther
to create the linker options with
$(addprefix -Xlinker ,$(LD_EXTRA_FLAGS))
instead of creating a string, which contains the commas, since the
commas hava a special meaning in the RHIDE specs (and the corresponding
GNU-make string-functions).
Robert
--
******************************************************
* email: Robert Hoehne <robert DOT hoehne AT gmx DOT net> *
* Post: Am Berg 3, D-09573 Dittmannsdorf, Germany *
* WWW: http://www.tu-chemnitz.de/~sho/rho *
******************************************************
- Raw text -