[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: Moving the applet directories.
From:       "Peter S. Mazinger" <ps.m () gmx ! net>
Date:       2006-01-31 8:54:36
Message-ID: Pine.LNX.4.44.0601310948100.13140-100000 () lnx ! bridge ! intra
[Download RAW message or body]

On Mon, 30 Jan 2006, Rob Landley wrote:

[...]

> --- Rules.mak   (revision 13743)
> +++ Rules.mak   (working copy)
> @@ -222,7 +223,7 @@
>      STRIPCMD:=$(STRIP) -s --remove-section=.note --remove-section=.comment
>  endif
>  ifeq ($(strip $(CONFIG_STATIC)),y)
> -    LDFLAGS += $(call check_ld,--static,)
> +    LDFLAGS += $(call check_ld,-static,)
>  #else
>  #    LIBRARIES += -ldl

This seems to me an overkill, who can't use -static?

This is an option that should be used for a normal app (like bb) by gcc 
passing it correctly to ld, else you break your app (wrong crtbegin*.o 
chosen for ex.)

> Unfortunately, now it's going:
> 
> /usr/bin/ld: cannot find -lgcc_s
> collect2: ld returned 1 exit status
> 
> And I have no idea why.  (The library's there...)
> 
> It works if the second change is instead:
> 
> +   LDFLAGS += -static # $(call check_ld,--static,)
> 
> Something about the way check_ld unnecessarily mangles static into a -W,l 
> option instead of a normal gcc option is confusing it...
>
> Rob

an --as-needed -lgcc_s --no-as-needed could do that too, either it is bb 
or in your gcc specs.

Peter

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2

_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic