On Tue, Apr 27, 2010 at 10:29:21PM +0200, Martin Mares wrote:
> Hello!
> 
> > Although i don't like the patch, i can't find a better way to fix this
> > so i will probably merge that.
> > 
> > MJ, do you have some comment on this [*]?
> > 
> > [*] http://marc.info/?l=bird-users&m=127200916013140&w=2
> 
> I am getting Internal Server Error at this URL now. Do I guess correctly that
> it is the patch changing calls of ld to calls of cc?

diff --git a/tools/Rules.in b/tools/Rules.in
index 79a15fa..e4598e2 100644
--- a/tools/Rules.in
+++ b/tools/Rules.in
@@ -66,7 +66,7 @@ else
 subdir: all.o
  
 all.o: $(objs)
-       $(LD) -r -o $@ $^
+       $(CC) -nostdlib  -Wl,-r -o $@ $^

> I suspect that "-nostdlib" and "-Wl" are much less portable than the previous
> construct with ld (they look like GCCisms to me). Joakim, have you
> investigated that?

This is no issue, we already require GCC.

-- 
Elen sila lumenn' omentielvo

Ondrej 'SanTiago' Zajicek (email: santi...@crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."

Attachment: signature.asc
Description: Digital signature

Reply via email to