|
@@ -17,8 +17,9 @@ MINIDLNA_DEPENDENCIES = \
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
|
# the configure script / Makefile forgets to link with some of the dependent
|
|
|
# libraries breaking static linking, so help it along
|
|
|
-MINIDLNA_CONF_ENV = \
|
|
|
- LIBS='-lavformat -lavcodec -lavutil -logg -lz -lpthread -lm'
|
|
|
+MINIDLNA_STATIC_LIBS += `$(PKG_CONFIG_HOST_BINARY) --libs libavcodec libexif libvorbis`
|
|
|
+MINIDLNA_STATIC_LIBS += $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),-lintl)
|
|
|
+MINIDLNA_CONF_ENV += LIBS="$(MINIDLNA_STATIC_LIBS)"
|
|
|
else
|
|
|
MINIDLNA_CONF_OPTS = \
|
|
|
--disable-static
|