summaryrefslogtreecommitdiffstats
path: root/package/gptfdisk
diff options
context:
space:
mode:
authorPeter Korsgaard <peter@korsgaard.com>2015-05-25 21:58:03 +0200
committerPeter Korsgaard <peter@korsgaard.com>2015-05-25 21:58:03 +0200
commit43713266cf01cbc8d4e057f60c3c4b3b0101b4b8 (patch)
treee072ae20d7d198ea1f786ab118fce60a82589f02 /package/gptfdisk
parent1a59eb4664c13916cad65504d3feb309e171409d (diff)
downloadbuildroot-43713266cf01cbc8d4e057f60c3c4b3b0101b4b8.tar.gz
buildroot-43713266cf01cbc8d4e057f60c3c4b3b0101b4b8.zip
gptfdisk: ensure correct libintl/libiconv build order
Fixes: http://autobuild.buildroot.net/results/c7d/c7d48554d76e39cbdf715721ae51e3516a99f97e/ We're explicitly linking against libintl/libiconv if enabled when linking statically, but weren't ensuring that those libraries had already been built before gptfdisk leading to linker issues. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/gptfdisk')
-rw-r--r--package/gptfdisk/gptfdisk.mk12
1 files changed, 9 insertions, 3 deletions
diff --git a/package/gptfdisk/gptfdisk.mk b/package/gptfdisk/gptfdisk.mk
index e84e3d39e8..f812376dea 100644
--- a/package/gptfdisk/gptfdisk.mk
+++ b/package/gptfdisk/gptfdisk.mk
@@ -24,9 +24,15 @@ endif
ifeq ($(BR2_STATIC_LIBS),y)
# gptfdisk dependencies may link against libintl/libiconv, so we need
# to do so as well when linking statically
-GPTFDISK_LDLIBS = \
- $(if $(BR2_PACKAGE_GETTEXT),-lintl) \
- $(if $(BR2_PACKAGE_LIBICONV),-liconv)
+ifeq ($(BR2_PACKAGE_GETTEXT),y)
+GPTFDISK_DEPENDENCIES += gettext
+GPTFDISK_LDLIBS += -lintl
+endif
+
+ifeq ($(BR2_PACKAGE_LIBICONV),y)
+GPTFDISK_DEPENDENCIES += libiconv
+GPTFDISK_LDLIBS += -liconv
+endif
endif
define GPTFDISK_BUILD_CMDS
OpenPOWER on IntegriCloud