diff options
author | Andy Green <andy@warmcat.com> | 2017-11-24 10:54:59 +0800 |
---|---|---|
committer | Andy Green <andy@warmcat.com> | 2017-12-01 11:37:36 +0800 |
commit | 91a821c7938413e16f51938e0a0847bcea865881 (patch) | |
tree | 09d7303863b408ee13487943b062d721d1dacef1 /component.mk | |
parent | f6de7465ecb094489be9cb73adb55ff48fcb4950 (diff) | |
download | libwebsockets-91a821c7938413e16f51938e0a0847bcea865881.tar.gz |
esp32: align with esp-idf changes
LWIP_SOCKET_OFFSET is now nonzero, which I handled a while back.
But the C api support for it is broken in esp-idf.
select() takes unmodified fds, but FD_SET / FD_ISSET etc must have the
offset subtracted on their args.
With this we are working on current HEAD esp-idf.
Diffstat (limited to 'component.mk')
-rw-r--r-- | component.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/component.mk b/component.mk index 9afdeb6f..9b5235e1 100644 --- a/component.mk +++ b/component.mk @@ -19,12 +19,12 @@ endif build: cd $(COMPONENT_BUILD_DIR) ; \ echo "doing lws cmake" ; \ - cmake $(COMPONENT_PATH) -DLWS_C_FLAGS="$(CFLAGS) -DNDEBUG=1" \ + cmake $(COMPONENT_PATH) -DLWS_C_FLAGS="$(CFLAGS) " \ -DIDF_PATH=$(IDF_PATH) \ -DCROSS_PATH=$(CROSS_PATH) \ -DBUILD_DIR_BASE=$(BUILD_DIR_BASE) \ -DCMAKE_TOOLCHAIN_FILE=$(COMPONENT_PATH)/contrib/cross-esp32.cmake \ - -DCMAKE_BUILD_TYPE=RELEASE \ + -DCMAKE_BUILD_TYPE=DEBUG \ -DLWS_MBEDTLS_INCLUDE_DIRS="${IDF_PATH}/components/openssl/include;${IDF_PATH}/components/mbedtls/include;${IDF_PATH}/components/mbedtls/port/include" \ -DLWS_WITH_STATS=0 \ -DLWS_WITH_HTTP2=1 \ |