diff --git a/trunk/libs/libwebsockets/Makefile b/trunk/libs/libwebsockets/Makefile index 6d33929a9ae..499b6e5e578 100644 --- a/trunk/libs/libwebsockets/Makefile +++ b/trunk/libs/libwebsockets/Makefile @@ -12,6 +12,7 @@ download_test: extract_test: ( if [ ! -d $(SRC_NAME) ]; then \ tar -xf $(SRC_NAME).tar.gz; \ + patch -p1 -d $(SRC_NAME) < $(SRC_NAME).patch ; \ fi ) config_test: diff --git a/trunk/libs/libwebsockets/libwebsockets-4.1.4.patch b/trunk/libs/libwebsockets/libwebsockets-4.1.4.patch new file mode 100644 index 00000000000..fd5634b0644 --- /dev/null +++ b/trunk/libs/libwebsockets/libwebsockets-4.1.4.patch @@ -0,0 +1,12 @@ +diff -rupw libwebsockets-4.1.4-orig/cmake/lws_config.h.in libwebsockets-4.1.4/cmake/lws_config.h.in +--- libwebsockets-4.1.4-orig/cmake/lws_config.h.in 2020-10-26 19:31:31.000000000 +0800 ++++ libwebsockets-4.1.4/cmake/lws_config.h.in 2020-12-30 09:55:18.141019011 +0800 +@@ -7,7 +7,7 @@ + #endif + + #define LWS_INSTALL_DATADIR "${CMAKE_INSTALL_PREFIX}/share" +-#define LWS_INSTALL_LIBDIR "${CMAKE_INSTALL_PREFIX}/${LWS_INSTALL_LIB_DIR}${LIB_SUFFIX}" ++#define LWS_INSTALL_LIBDIR "/lib" + #define LWS_LIBRARY_VERSION_MAJOR ${LWS_LIBRARY_VERSION_MAJOR} + #define LWS_LIBRARY_VERSION_MINOR ${LWS_LIBRARY_VERSION_MINOR} + #define LWS_LIBRARY_VERSION_PATCH_ELABORATED ${LWS_LIBRARY_VERSION_PATCH_ELABORATED}