Skip to content
Snippets Groups Projects
Commit 7033794d authored by Sébastien Blin's avatar Sébastien Blin Committed by Adrien Béraud
Browse files

apple: avoid SO_REUSEADDR for upnp

This cause a huge battery drain. Issue reported upstream there:
https://github.com/pupnp/pupnp/issues/328

Change-Id: I739aa6e3929297f2e09b4d37849106ca03c2635e
GitLab: #563
parent 0cba786b
Branches
No related tags found
No related merge requests found
......@@ -20,13 +20,22 @@ endif
$(UPDATE_AUTOCONFIG) && cd $(UNPACK_DIR) && mv config.guess config.sub
$(MOVE)
PUPNP_OPTIONS=--disable-largefile --disable-samples --disable-device --disable-webserver --without-documentation
ifdef HAVE_IOS
PUPNP_OPTIONS+= --disable-reuseaddr
else
ifdef HAVE_MACOSX
PUPNP_OPTIONS+= --disable-reuseaddr
endif
endif
.upnp: upnp
ifdef HAVE_WIN32
$(RECONF)
cd $< && $(HOSTVARS) CFLAGS="-DUPNP_STATIC_LIB" ./configure --disable-largefile --disable-samples --disable-device --disable-webserver --without-documentation $(HOSTCONF)
cd $< && $(HOSTVARS) CFLAGS="-DUPNP_STATIC_LIB" ./configure $(PUPNP_OPTIONS) $(HOSTCONF)
else
$(RECONF)
cd $< && $(HOSTVARS) CFLAGS="$(CFLAGS) -DUPNP_STATIC_LIB" ./configure --disable-largefile --disable-samples --disable-device --disable-webserver --without-documentation $(HOSTCONF)
cd $< && $(HOSTVARS) CFLAGS="$(CFLAGS) -DUPNP_STATIC_LIB" ./configure $(PUPNP_OPTIONS) $(HOSTCONF)
endif
cd $< && $(MAKE) install
touch $@
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment