diff options
-rw-r--r-- | package/libupnpp/libupnpp.mk | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/package/libupnpp/libupnpp.mk b/package/libupnpp/libupnpp.mk index 853a7244ea..defc16aeff 100644 --- a/package/libupnpp/libupnpp.mk +++ b/package/libupnpp/libupnpp.mk @@ -12,9 +12,11 @@ LIBUPNPP_INSTALL_STAGING = YES LIBUPNPP_DEPENDENCIES = expat libcurl libupnp # configure script fails to link against the dependencies of libupnp -# causing upnp detection to fail when statically linking +# and libcurl causing detection to fail when statically linking ifeq ($(BR2_STATIC_LIBS),y) -LIBUPNPP_CONF_ENV += LIBS='-lthreadutil -lixml -pthread' +LIBUPNPP_DEPENDENCIES += host-pkgconf +LIBUPNPP_CONF_ENV += \ + LIBS='$(shell $(PKG_CONFIG_HOST_BINARY) --libs libupnp libcurl)' endif $(eval $(autotools-package)) |