Makefile tweak for -lm?

Bernhard Fischer rep.nop at aon.at
Fri Dec 2 08:19:06 UTC 2005


On Fri, Dec 02, 2005 at 12:58:21AM +0100, Aurelien Jacobs wrote:
>On Thu, 1 Dec 2005 15:32:13 -0600
>Rob Landley <rob at landley.net> wrote:
>
>> CONFIG_FEATURE_SORT_BIG needs libm, and right now it's not always 
>> automatically including it.  (I managed to get a build break from this.)
>> 
>> I came up with the following makefile patch via cut and paste.  Would someone 
>> who knows makefiles tell me what I _should_ have done?
>
>Maybe this should go into Rules.mak and this should be :

I'd set need-libm=y and look at $(need-libm) in Rules.mak.

>
>+ifeq ($(strip $(CONFIG_FEATURE_SORT_BIG)),y)
>+  LIBRARIES += -lm
>+endif

This would lead to a fairly big block when it's done for all applets
which need e.g. libm.



More information about the busybox mailing list