util-linux: use configure option instead of patching makefile
authorPeter Seiderer <ps.report@gmx.net>
Tue, 21 Oct 2014 19:32:36 +0000 (21:32 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 22 Oct 2014 19:08:41 +0000 (21:08 +0200)
commitb1c0d8142a99d0c72116f0894d1f3e65e4210d3f
tree551110d12375cb6ff6730674f3fc7a873faeb926
parentd4294df577a52537f66a12e0be4aa8854f8fb4a5
util-linux: use configure option instead of patching makefile

Use --disable-all-programs configure option instead of sed base
patching of Makefile.am in case no util-linux binaries are selected.

Suggested by Thomas Petazzoni ([1]).

With this patch applied the following libs are no longer build by default:

util-linux-2.25.1/.libs/libfdisk.a
util-linux-2.25.1/.libs/libsmartcols.a
util-linux-2.25.1/.libs/libsmartcols.so.1.1.0

[1] http://lists.busybox.net/pipermail/buildroot/2014-October/109818.html

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/util-linux/util-linux.mk