Makefile tweak for -lm?

Aurelien Jacobs aurel at
Thu Dec 1 23:58:21 UTC 2005

On Thu, 1 Dec 2005 15:32:13 -0600
Rob Landley <rob at> 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 :

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

At least, that's what is used for some other libs.


More information about the busybox mailing list