From: Peter Korsgaard Date: Thu, 11 Jul 2013 13:09:08 +0000 (+0200) Subject: minidlna: fix linking with libintl if present X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2b10ef9f09220b6cea3fb53acb3f61c66a58b6cb;p=buildroot.git minidlna: fix linking with libintl if present Fixes http://autobuild.buildroot.net/results/3b7/3b71243716dc193a11508a69265cdd0120bd13ed There's unfortunately not any easy way of adding extra libraries to LIBS, so we need to list them all here. Signed-off-by: Peter Korsgaard --- diff --git a/package/minidlna/minidlna.mk b/package/minidlna/minidlna.mk index 1dd65fa809..10e3b33b67 100644 --- a/package/minidlna/minidlna.mk +++ b/package/minidlna/minidlna.mk @@ -19,12 +19,18 @@ MINIDLNA_CFLAGS=$(TARGET_CFLAGS) \ -I"$(STAGING_DIR)/usr/include/libavcodec" \ -I"$(STAGING_DIR)/usr/include/libavformat" +ifeq ($(BR2_PACKAGE_GETTEXT),y) +MINIDLNA_DEPENDENCIES += gettext +# we need to link with libintl +MINIDLNA_MAKE_OPTS += LIBS='-lpthread -lexif -ljpeg -lsqlite3 -lavformat -lavutil -lavcodec -lid3tag -lFLAC -logg -lvorbis -lintl' +endif + define MINIDLNA_BUILD_CMDS PREFIX=$(STAGING_DIR)/usr \ $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(MINIDLNA_CFLAGS)" -C $(@D) depend $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \ - CFLAGS="$(MINIDLNA_CFLAGS)" -C $(@D) all + CFLAGS="$(MINIDLNA_CFLAGS)" $(MINIDLNA_MAKE_OPTS) -C $(@D) all endef define MINIDLNA_INSTALL_TARGET_CMDS