Skip to content
Snippets Groups Projects
Commit 4872e537 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Hugo Beauzée-Luyssen
Browse files

contrib: upnp: add -lpthread on Linux

-pthread does not work in with CXX-tagged libtool invocation.
parent b9026d79
No related branches found
No related tags found
1 merge request!1269RISC-V RV64GC GNU/Linux support
......@@ -55,5 +55,11 @@ endif
.upnp: upnp
$(RECONF)
cd $< && $(HOSTVARS) CFLAGS="$(UPNP_CFLAGS)" CXXFLAGS="$(UPNP_CXXFLAGS)" ./configure --disable-samples --without-documentation $(CONFIGURE_ARGS) $(HOSTCONF)
ifdef HAVE_LINUX
ifndef HAVE_ANDROID
sed -e 's,^Libs\(.*\)-pthread,Libs\1-pthread -lpthread,' \
-i $</libupnp.pc
endif
endif
cd $< && $(MAKE) install
touch $@
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment