Mail Archives: djgpp/1996/02/27/01:11:27
On Mon, 26 Feb 1996, Bailey Brown wrote:
> I have to put djgpp.lnk on the gcc command line for it to link. This
> is only a minor inconvenience, but is there a way to make it link in
> djgpp.lnk automatically? I can't find djgpp.lnk in djgpp.env.
`djgpp.lnk' is mentioned in `lib/specs' (it has a -Tdjgpp.lnk option).
Make sure you have lib/specs with this section in it:
*link_command:
%{!c:%{!M:%{!MM:%{!E:%{!S:ld %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} \
%{r} %{s} %{t} %{u*} %{x} %{z}\
%{!A:%{!nostartfiles:%{!nostdlib:%S}}} %{static:}\
%{L*} %D %{T*} %o -Tdjgpp.lnk\
%{!nostdlib:-lgcc %L -lgcc %{!A:%E}}}}}}}
%{!c:%{!M:%{!MM:%{!E:%{!S:stubify %{v} %{o*:%*} %{!o*:a.out}}}}}}
If your lib/specs seems OK, please add -v to the gcc command line and
post everything it prints when linking. (You might need to use `redir'
to redirect the output to a file; `redir' is described in `utils.inf'
Info file in your info/ subdirectory.)
- Raw text -