btrfs-progs: fix static build
authorBaruch Siach <baruch@tkos.co.il>
Fri, 28 Nov 2014 07:18:12 +0000 (09:18 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 28 Nov 2014 07:59:44 +0000 (08:59 +0100)
libuuid needs -lintl when BR2_NEEDS_GETTEXT_IF_LOCALE is set.

Fixes:
http://autobuild.buildroot.net/results/9f1/9f182cd5955d724750135bcd6cb7e315fb28334f/

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/btrfs-progs/btrfs-progs.mk

index d16fa0d9aa6f3070defe99823df76cd702c30232..7122df1b0e76916a4e54bb660102dc9d1d650021 100644 (file)
@@ -17,6 +17,10 @@ BTRFS_PROGS_LICENSE_FILES = COPYING
 ifeq ($(BR2_PREFER_STATIC_LIB),y)
 BTRFS_PROGS_MAKE_TARGET = static
 BTRFS_PROGS_MAKE_INSTALL_TARGET = install-static
+ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
+# Add -lintl for libuuid
+BTRFS_PROGS_MAKE_FLAGS += lib_LIBS="-luuid -lblkid -lm -lz -llzo2 -L. -lintl"
+endif
 else
 BTRFS_PROGS_MAKE_TARGET = all
 BTRFS_PROGS_MAKE_INSTALL_TARGET = install