Makefile tweak for -lm?

Rob Landley rob at landley.net
Fri Dec 2 16:15:31 UTC 2005


On Friday 02 December 2005 07:01, Mike Frysinger wrote:
> On Thu, Dec 01, 2005 at 03:32:13PM -0600, Rob Landley wrote:
> > I came up with the following makefile patch via cut and paste.  Would
> > someone who knows makefiles tell me what I _should_ have done?
>
> this should work:
> needlibm-y :=
> needlibm-$(CONFIG_FEATURE_SORT_BIG) := -lm
> LIBRARIES += $(needlibm-y)

Okay...

(Much blinking and scratching of head ensues...)

Ok, I think I understand what it means, but won't it add -lm more than once if 
more than one applet needs it?

Rob
-- 
Steve Ballmer: Innovation!  Inigo Montoya: You keep using that word.
I do not think it means what you think it means.



More information about the busybox mailing list