e2fsprogs: only add -lintl for static builds
authorCarlos Santos <casantos@datacom.ind.br>
Sat, 22 Apr 2017 22:49:18 +0000 (00:49 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 4 May 2017 20:33:10 +0000 (22:33 +0200)
For dynamic library builds, it's not needed to pass it explicitly.

Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/e2fsprogs/e2fsprogs.mk

index a60c69b39559b78865f77ab04aee3d8e69a8f057..70a1e4eab595bba646ac03348b4f569f0f109c56 100644 (file)
@@ -77,7 +77,7 @@ HOST_E2FSPROGS_CONF_ENV += \
        ac_cv_header_magic_h=no \
        ac_cv_lib_magic_magic_file=no
 
-ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
+ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE)$(BR2_STATIC_LIBS),yy)
 # util-linux libuuid pulls in libintl if needed, so ensure we also
 # link against it, otherwise static linking fails
 E2FSPROGS_CONF_ENV += LIBS=-lintl