Skip to content

Commit 2526cd3

Browse files
committed
make websockets work on Android
1 parent 7478157 commit 2526cd3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

contrib/src/main.mak

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ ifdef HAVE_CROSS_COMPILE
408408
ifdef HAVE_ANDROID
409409
# cmake will overwrite our --sysroot with a native (host) one on Darwin
410410
# Set it to "" right away to short-circuit this behaviour
411+
echo "set(CMAKE_SYSTEM_NAME Linux)" >> $@
411412
echo "set(CMAKE_CXX_SYSROOT_FLAG \"\")" >> $@
412413
echo "set(CMAKE_C_SYSROOT_FLAG \"\")" >> $@
413414
endif

contrib/src/websockets/rules.mak

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ endif
2727
DEPS_websockets = zlib $(DEPS_zlib)
2828

2929
.websockets: websockets .zlib toolchain.cmake
30-
cd $< && $(HOSTVARS) CFLAGS="$(CFLAGS) $(EX_ECFLAGS)" $(CMAKE) -DCMAKE_BUILD_TYPE=Release -DLWS_WITH_SSL=0
31-
cd $< && $(MAKE) install
30+
cd $< && $(HOSTVARS) CFLAGS="$(CFLAGS) $(EX_ECFLAGS)" $(CMAKE) -DCMAKE_BUILD_TYPE=Release -DLWS_WITH_SSL=0 -DLWS_WITHOUT_TEST_PING=1
31+
cd $< && $(MAKE) VERBOSE=1 install
3232
touch $@

0 commit comments

Comments
 (0)